diff options
author | Joe Abbey <jabbey@arxan.com> | 2012-11-17 04:54:22 +0000 |
---|---|---|
committer | Joe Abbey <jabbey@arxan.com> | 2012-11-17 04:54:22 +0000 |
commit | 035fc9aa9f64575b394b22d9ccfa453424d7e4ec (patch) | |
tree | 99457f36fb95b62272457e5276e0ea10f1681c7e /llvm/unittests/Support/AlignOfTest.cpp | |
parent | 0dace3939d9b90e7dda018c0731dafe3583b6d83 (diff) | |
download | bcm5719-llvm-035fc9aa9f64575b394b22d9ccfa453424d7e4ec.tar.gz bcm5719-llvm-035fc9aa9f64575b394b22d9ccfa453424d7e4ec.zip |
Suppressing the 'direct base ‘{anonymous}::S1’ inaccessible in ‘{anonymous}::D9’
due to ambiguity' warning.
llvm-svn: 168251
Diffstat (limited to 'llvm/unittests/Support/AlignOfTest.cpp')
-rw-r--r-- | llvm/unittests/Support/AlignOfTest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/unittests/Support/AlignOfTest.cpp b/llvm/unittests/Support/AlignOfTest.cpp index f01e6609390..15935446fb1 100644 --- a/llvm/unittests/Support/AlignOfTest.cpp +++ b/llvm/unittests/Support/AlignOfTest.cpp @@ -22,6 +22,18 @@ namespace { #pragma warning(disable:4584) #endif +// Suppress direct base ‘{anonymous}::S1’ inaccessible in ‘{anonymous}::D9’ +// due to ambiguity warning. +// +// Pragma based warning suppression was introduced in GGC 4.2. Additionally +// this warning is "enabled by default". The warning still appears if -Wall is +// suppressed. Apparently GCC suppresses it when -w is specifed, which is odd. +// At any rate, clang on the other hand gripes about -Wunknown-pragma, so +// leaving it out of this. +#if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 402 && !defined(__clang__) +#pragma GCC diagnostic warning "-w" +#endif + // Define some fixed alignment types to use in these tests. #if __has_feature(cxx_alignas) struct alignas(1) A1 { }; |