diff options
author | Bob Wilson <bob.wilson@apple.com> | 2011-10-12 19:55:31 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2011-10-12 19:55:31 +0000 |
commit | 73a4deb33d5552ab7e3ca9bdd0d83d8ffc53c8b8 (patch) | |
tree | 3ef1c792a0683b8e0796da8321525657c2fe6e19 /clang/test/Sema/implicit-int.c | |
parent | 2d21ab024ed371ce2a45c8691d0676a4ed855cc1 (diff) | |
download | bcm5719-llvm-73a4deb33d5552ab7e3ca9bdd0d83d8ffc53c8b8.tar.gz bcm5719-llvm-73a4deb33d5552ab7e3ca9bdd0d83d8ffc53c8b8.zip |
Change __extension__ to disable only diagnostics controlled by -pedantic.
This changes clang to match GCC's behavior for __extension__, which temporarily
disables the -pedantic flag. Warnings that are enabled without -pedantic
are not affected. Besides the general goodness of matching GCC's precedent,
my motivation for this is that macros in the arm_neon.h header need to use
__extension__ to avoid pedantic complaints about their use of statement
expressions, yet we still want to warn about incompatible pointer arguments
for those macros.
llvm-svn: 141804
Diffstat (limited to 'clang/test/Sema/implicit-int.c')
-rw-r--r-- | clang/test/Sema/implicit-int.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/test/Sema/implicit-int.c b/clang/test/Sema/implicit-int.c index 1bb9a838530..3063db66ed8 100644 --- a/clang/test/Sema/implicit-int.c +++ b/clang/test/Sema/implicit-int.c @@ -24,9 +24,5 @@ h19_insline(n) // expected-warning {{parameter 'n' was not declared, defaulting } struct foo { - __extension__ __attribute__((packed)) x : 4; + __extension__ __attribute__((packed)) x : 4; // expected-warning {{type specifier missing, defaults to 'int'}} }; - - - - |