gnu-nat.c, compile it without -Werror

Pedro Alves pedro@codesourcery.com
Tue Sep 9 15:26:00 GMT 2008


Building gnu-nat.c fails with:

../../src/gdb/gnu-nat.c: In function 'inf_set_traced':
../../src/gdb/gnu-nat.c:884: error: suggest parentheses around assignment used 
as truth value
../../src/gdb/gnu-nat.c:884: error: suggest parentheses around assignment used 
as truth value
../../src/gdb/gnu-nat.c: In function 'inf_signal':
(... a few more instances of the same ...)

Turns out that warning comes from the definition of HURD_MSGPORT_RPC,
a 20+ lines system macro...

OK?

-- 
Pedro Alves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hurd_werror.diff
Type: text/x-diff
Size: 955 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080909/991dac10/attachment.bin>


More information about the Gdb-patches mailing list