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]

[RFA 0/9] Enable -Wimplicit-fallthrough


This series enables -Wimplicit-fallthrough for gdb.  I think this is
valuable because it can prevent the occasional bug.

A couple of the patches are straightforward.  For example, patch #1
changes existing "fall-through" comments to the correct form that will
be recognized by GCC.

In some cases I was not sure which change to make.  I've split all
these out in this series for easier review.  Please examine them
carefully.  This applies to patches 4, 5, 6, and 8.

I chose to use comments rather than the new fall-through attribute
because the comments are more portable: they can be ignored by
compilers that do not understand them, and they do not require
additional configury.

Tested by the buildbot.

Tom


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