From: John McCall Date: Fri, 6 Nov 2009 07:53:21 +0000 (+0000) Subject: Create a warning group "non-gcc" for diagnostics which are not enabled X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c2620705b87ab6899fb2756bf191bb89d1995c8;p=clang Create a warning group "non-gcc" for diagnostics which are not enabled by default in GCC. Users who want to emulate gcc's warning behavior exactly should be able to use CC="clang -Wno-non-gcc"; this should help projects to transition. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86241 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 2a998d17c6..bfaebae873 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -159,3 +159,7 @@ def : DiagGroup<"all", [Most, Parentheses]>; def : DiagGroup<"", [Extra]>; // -W = -Wextra def : DiagGroup<"endif-labels", [ExtraTokens]>; // endif-labels = endif-tokens +// A warning group for warnings that we want to have on by default in clang, +// but which aren't no by default in GCC. +def NonGCC : DiagGroup<"non-gcc", + [SignCompare]>;