diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 10:02:16 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 10:02:16 +0000 |
commit | d03de6aaa312d57dcd6e2bc76bed1e89f5c5019d (patch) | |
tree | 6eb0b96b1c0883d75befbcd1d33e372f78493b93 /test/Sema/types.c | |
parent | 93384a910cb98f3a128b76e6043f149e1b384c65 (diff) |
Downgrade 'attribute ignored when parsing type' from error to warning, to match
the diagnostic's warn_ name. Switch some places (notably C++11 attributes)
which really wanted an error over to a different diagnostic. Finally, suppress
the diagnostic entirely for __ptr32, __ptr64 and __w64, to avoid producing
diagnostics in important system headers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/types.c')
-rw-r--r-- | test/Sema/types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/types.c b/test/Sema/types.c index 6ae1a92e05..d0637cca61 100644 --- a/test/Sema/types.c +++ b/test/Sema/types.c @@ -53,7 +53,7 @@ _Decimal32 x; // expected-error {{GNU decimal type extension not supported}} int __attribute__ ((vector_size (8), vector_size (8))) v; // expected-error {{invalid vector element type}} void test(int i) { - char c = (char __attribute__((align(8)))) i; // expected-error {{'align' attribute ignored when parsing type}} + char c = (char __attribute__((align(8)))) i; // expected-warning {{'align' attribute ignored when parsing type}} } // http://llvm.org/PR11082 |