seiferff / distcc

Automatically exported from code.google.com/p/distcc
GNU General Public License v2.0
0 stars 0 forks source link

error: variable ‘ret’ set but not used #152

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Answering the following questions is a big help:

1. What version of distcc are you using (e.g. "2.7.1")?
3.2rc1

2. What platform are you running on
CentOS 6.4
gcc 5.1.0

3. What were you trying to do
install distcc

4. What went wrong?
compiler error
gcc -DHAVE_CONFIG_H -D_GNU_SOURCE 
-DSYSCONFDIR="\"/usr/local/modulefiles/../distcc/3.2rc1/etc\"" 
-DPKGDATADIR="\"/usr/local/modulefiles/../distcc/3.2rc1/share/distcc\"" -Isrc 
-I"../distcc-3.2rc1/src" -I"../distcc-3.2rc1/lzo"  -Werror -g -O2 -MD -W -Wall 
-Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings 
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs 
-Wmissing-declarations -Wuninitialized -pthread -o src/dotd.o -c 
../distcc-3.2rc1/src/dotd.c
../distcc-3.2rc1/src/dotd.c: In function ‘dcc_get_dotd_info’:
../distcc-3.2rc1/src/dotd.c:175:9: error: variable ‘ret’ set but not used 
[-Werror=unused-but-set-variable]
     int ret;
         ^
cc1: all warnings being treated as errors
Makefile:448: recipe for target 'src/dotd.o' failed

5. If you have an example of a compiler invocation that failed, quote it, in 
full e.g.:
   distcc gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src \ "-DSYSCONFDIR=\"/etc/\"" -I./lzo -g -O2 -W -Wall -W \ -Wimplicit -Wshadow -Wpointer-arith -Wcast-align \ -Wwrite-strings -Waggregate-return -Wstrict-prototypes \ -Wmissing-prototypes -Wnested-externs -o src/clirpc.o \ -c src/clirpc.c

6. What error logging do you get?

7. If you got an error message on stderr, quote that error exactly.

Original issue reported on code.google.com by daveyost...@gmail.com on 3 Jun 2015 at 9:17