[PATCH] Add specific warning flags for GNU ext in Sema
Peter Lewis
peter at stairways.com.au
Thu Sep 5 03:33:51 PDT 2013
This patch adds the following specific warning flags to -Wgnu:
gnu-anonymous-struct
gnu-compound-literal-initializer
gnu-empty-struct
gnu-flexible-array-initializer
gnu-flexible-array-union-member
gnu-folding-constant
redeclared-class-member
gnu-redeclared-enum
gnu-union-cast
gnu-variable-sized-type-not-at-end
At Eli's suggestion, redeclared-class-member does not have the gnu prefix, and this patch subsumes ext_vla_folded_to_constant into gnu-folding-constant (a visible effect of this is that -Wgnu enables gnu-folding-constant which enabled ext_vla_folded_to_constant where previously it would not have).
http://llvm-reviews.chandlerc.com/D1605
Files:
test/Sema/gnu-flags.c
test/Misc/warning-flags-tree.c
test/Misc/warning-flags.c
test/SemaCXX/gnu-flags.cpp
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1605.1.patch
Type: text/x-patch
Size: 19204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130905/f4a739b1/attachment.bin>
More information about the cfe-commits
mailing list