1.Version 3.2rc1
2.cc: 4.6.2 my pc: Linux kenobi 3.1.0-1-686-pae #1 SMP Tue Jan 10 05:42:54 UTC 2012 i686 GNU/Linux, Debian testing
- Error has occurred when I was trying to install distcc.
4.$ make ----8<------------------------------ src/dotd.c: In function ‘dcc_get_dotd_info’: src/dotd.c:175:9: error: variable ‘ret’ set but not used [- Werror=unused-but-set-variable] cc1: all warnings being treated as errors
Comment #1
Posted on Jan 28, 2012 by Grumpy BearI think it could be a problem with a gcc.
Comment #2
Posted on Feb 2, 2012 by Helpful PandaHere's a patch.
Index: src/dotd.c
--- src/dotd.c (revision 750) +++ src/dotd.c (working copy) @@ -172,7 +172,6 @@ char **new_args; /* will throw this away */ int has_dash_o = 0; char *env_var = 0; - int ret; int i; char *a;
@@ -253,7 +252,7 @@
char *extension;
char *tmp_dotd_fname;
- ret = dcc_scan_args(argv, &input_file, &output_file, &new_args); + dcc_scan_args(argv, &input_file, &output_file, &new_args); /* if .o is set, just append .d. * otherwise, take the basename of the input, and set the suffix to .d */ if (has_dash_o)
Comment #3
Posted on Feb 6, 2012 by Helpful PandaI committed the patch into the svn repository: fixed in revision 754.
Status: Fixed