This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: fix bug in compare_breakpoints
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> Eh! Shame that gcc doesn't warn on this ("comparison always false",
Pedro> I gather?). Sounds like something that shouldn't be hard for the
Pedro> compiler to detect. IWBN to have gcc PRs for these issues.
I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54979
for the comparison issue.
The other problem is caught by -Wempty-body, which we don't enable. It
yields a number of warnings and would require a coding style change
from:
if (blah)
;
to
if (blah)
{
}
That would be fine with me, and I'd be happy to write the patch if there
is general agreement.
Tom