diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-05-24 23:31:57 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-05-24 23:31:57 +0000 |
commit | 9eea764a1fafb5883286b088422e2ec77db25dec (patch) | |
tree | fd0183607e3c98d63bf26460d9a2d72f1786506d /clang/test/Misc/warning-flags.c | |
parent | ba63e07f3a8b698b300b154abd2dcc49ba197f69 (diff) | |
download | bcm5719-llvm-9eea764a1fafb5883286b088422e2ec77db25dec.tar.gz bcm5719-llvm-9eea764a1fafb5883286b088422e2ec77db25dec.zip |
Warn on va_start() when called with a reference parameter.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1905.pdf 18.7p3
explicitly calls this (and some other things) out as undefined.
Also move 2 other existing warnings behind the new -Wvarargs flag.
llvm-svn: 182694
Diffstat (limited to 'clang/test/Misc/warning-flags.c')
-rw-r--r-- | clang/test/Misc/warning-flags.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/test/Misc/warning-flags.c b/clang/test/Misc/warning-flags.c index a6dc8f1352f..3293e02a440 100644 --- a/clang/test/Misc/warning-flags.c +++ b/clang/test/Misc/warning-flags.c @@ -18,7 +18,7 @@ This test serves two purposes: The list of warnings below should NEVER grow. It should gradually shrink to 0. -CHECK: Warnings without flags (143): +CHECK: Warnings without flags (141): CHECK-NEXT: ext_delete_void_ptr_operand CHECK-NEXT: ext_enum_friend CHECK-NEXT: ext_expected_semi_decl_list @@ -146,8 +146,6 @@ CHECK-NEXT: warn_redeclaration_without_attribute_prev_attribute_ignored CHECK-NEXT: warn_register_objc_catch_parm CHECK-NEXT: warn_related_result_type_compatibility_class CHECK-NEXT: warn_related_result_type_compatibility_protocol -CHECK-NEXT: warn_second_parameter_of_va_start_not_last_named_argument -CHECK-NEXT: warn_second_parameter_to_va_arg_never_compatible CHECK-NEXT: warn_static_inline_explicit_inst_ignored CHECK-NEXT: warn_static_non_static CHECK-NEXT: warn_template_export_unsupported |