This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA PATCH] Enable -Wpointer-sign by default.


> From: Pedro Alves <palves@redhat.com>
> Date: Fri, 19 Apr 2013 18:59:32 +0100
> 
> +@item -Wpointer-sign
> +This helps make sure @value{GDBN} code uses @code{gdb_byte} which is
> +really @code{unsigned char} for raw bytes instead of @code{char},
> +whose signness is host-dependent.  @sc{gcc} enables this with
> +@code{-Wall} since version 4.0.  We enable it explicitly too to be
> +decoupled from future @sc{gcc} (or other compiler)'s choices.

I'd use "defaults" instead of "choices".

As for "other compilers": do other compilers really have, or are
likely to have, options that are named like that?  If not, I suggest
to delete the part in the parentheses.

OK with those changes.

Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]