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 1/3] Fix "fall through" comments


>>>>> "Yao" == Yao Qi <qiyaoltc@gmail.com> writes:

Yao> clang has -Wimplicit-fallthrough as well, but warnings are suppressed in
Yao> a different way.  Do we need to suppress warnings generated by both gcc
Yao> and clang?

On my machine, clang won't build gdb.  From memory there was at least
some issue compiling .c files in c++ mode, but I think there were other
problems as well.

If clang support is desired, then yes, the correct approach is to
replace the fall-through comments with a new attribute.

Tom


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