Re: -Werror enabled by default on GNU/Hurd

Andrea Monaco via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
  > with this patch I am now able to build GDB on GNU/Hurd (i686).  This
  > might help you out.

Thanks, that solves a warning.  But the build still fails with this
output:


  CXX    msg_U.o
cc1: warning: command-line option '-Wno-mismatched-tags' is valid for C++/ObjC++ but not for C
cc1: warning: command-line option '-Wsuggest-override' is valid for C++/ObjC++ but not for C
cc1: warning: command-line option '-Wdeprecated-copy' is valid for C++/ObjC++ but not for C
cc1: warning: command-line option '-Wdeprecated-copy-dtor' is valid for C++/ObjC++ but not for C
cc1: warning: command-line option '-Wredundant-move' is valid for C++/ObjC++ but not for C
cc1: warning: command-line option '-Wstrict-null-sentinel' is valid for C++/ObjC++ but not for C
msg_U.c: In function 'msg_set_init_ports':
msg_U.c:1044:22: error: conversion from 'unsigned int' to 'short unsigned int' changes value from '4294967295' to '65535' [-Werror=overflow]
 1044 |   /* msgtl_name = */ MACH_MSG_TYPE_POLYMORPHIC,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
msg_U.c: In function 'msg_set_dtable':
msg_U.c:1838:22: error: conversion from 'unsigned int' to 'short unsigned int' changes value from '4294967295' to '65535' [-Werror=overflow]
 1838 |   /* msgtl_name = */ MACH_MSG_TYPE_POLYMORPHIC,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:1684: recipe for target 'msg_U.o' failed
make: *** [msg_U.o] Error 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.