[Bug bootstrap/88106] [9 Regression] Bootstrap failure on mingw32

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 20 10:32:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88106

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
../../../gcc/libgomp/config/mingw32/affinity-fmt.c: In function
'gomp_gethostname':
../../../gcc/libgomp/config/mingw32/affinity-fmt.c:47:7: error: variable 'ret'
set but not used [-Werror=unused-but-set-variable]
   47 |   int ret = 0;
      |       ^~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:786: affinity-fmt.lo] Error 1


Changing it to return ret allows bootstrap to finish successfully.


More information about the Gcc-bugs mailing list