llvm.org GIT mirror llvm / 0a506e2
Suppress the newly added Clang warning for the inaccessible base in this test. Do that after we suppress the warnings for unknown pragmas as this warning flag is quite new in Clang and so old Clang's would warn all the time on this file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226444 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 5 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2121
2222 // Suppress direct base '{anonymous}::S1' inaccessible in '{anonymous}::D9'
2323 // due to ambiguity warning.
24 //
24 #ifdef __clang__
25 #pragma clang diagnostic ignored "-Wunknown-pragmas"
26 #pragma clang diagnostic ignored "-Winaccessible-base"
27 #elif ((__GNUC__ * 100) + __GNUC_MINOR__) >= 402
2528 // Pragma based warning suppression was introduced in GGC 4.2. Additionally
2629 // this warning is "enabled by default". The warning still appears if -Wall is
2730 // suppressed. Apparently GCC suppresses it when -w is specifed, which is odd.
28 // At any rate, clang on the other hand gripes about -Wunknown-pragma, so
29 // leaving it out of this.
30 #if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 402 && !defined(__clang__)
3131 #pragma GCC diagnostic warning "-w"
3232 #endif
3333