]> granicus.if.org Git - clang/commitdiff
Silence warnings of unkwown -Wlarger-than and -Wframe-larger-than. Fixes rdar://6970318.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 30 Mar 2011 18:02:43 +0000 (18:02 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 30 Mar 2011 18:02:43 +0000 (18:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128560 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td

index b831c9193f7b0c050a550f4f4e8b0e0a1ce530fc..1e932d422152312b05798fad567e9157264a9c3d 100644 (file)
@@ -421,6 +421,14 @@ def ftemplate_backtrace_limit_EQ : Joined<"-ftemplate-backtrace-limit=">,
                                    Group<f_Group>;
 def Wlarge_by_value_copy_def : Flag<"-Wlarge-by-value-copy">;
 def Wlarge_by_value_copy_EQ : Joined<"-Wlarge-by-value-copy=">;
+
+// Just silence warnings about -Wlarger-than,  -Wframe-larger-than for now.
+def Wlarger_than : Separate<"-Wlarger-than">, Group<clang_ignored_f_Group>;
+def Wlarger_than_EQ : Joined<"-Wlarger-than=">, Alias<Wlarger_than>;
+def Wlarger_than_ : Joined<"-Wlarger-than-">, Alias<Wlarger_than>;
+def Wframe_larger_than : Separate<"-Wframe-larger-than">, Group<clang_ignored_f_Group>;
+def Wframe_larger_than_EQ : Joined<"-Wframe-larger-than=">, Alias<Wframe_larger_than>;
+
 def fterminated_vtables : Flag<"-fterminated-vtables">, Group<f_Group>;
 def fthreadsafe_statics : Flag<"-fthreadsafe-statics">, Group<f_Group>;
 def ftime_report : Flag<"-ftime-report">, Group<f_Group>;