diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-14 06:36:18 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-14 06:36:18 +0000 |
| commit | cb3b5a483fde37bce8086fc074f822962c58d952 (patch) | |
| tree | 0448841834bd2ac0791acd144ffae63b05c5f384 /clang/test/Sema/struct-cast.c | |
| parent | bad47f62f6e104687943389d2b151f1a1a2db35b (diff) | |
| download | bcm5719-llvm-cb3b5a483fde37bce8086fc074f822962c58d952.tar.gz bcm5719-llvm-cb3b5a483fde37bce8086fc074f822962c58d952.zip | |
Wire up '-Wignored-qualifiers' to the warning on 'const' in 'const int f()'.
This flag and warning match GCC semantics. Also, move it to -Wextra as this is
a largely cosmetic issue and doesn't seem to mask problems. Subsequent fixes to
the tests which no longer by default emit the warning. Added explicit test
cases for both C and C++ behavior with the warning turned on.
llvm-svn: 108325
Diffstat (limited to 'clang/test/Sema/struct-cast.c')
| -rw-r--r-- | clang/test/Sema/struct-cast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/struct-cast.c b/clang/test/Sema/struct-cast.c index 3456665a8c5..30ef89242af 100644 --- a/clang/test/Sema/struct-cast.c +++ b/clang/test/Sema/struct-cast.c @@ -5,7 +5,7 @@ struct S { int two; }; -struct S const foo(void); // expected-warning{{type qualifier on return type has no effect}} +struct S const foo(void); struct S tmp; |

