Isolate #pragma clang to __clang__ compilations.

It's very irritating that Visual Studio produces a warning for unrecognized
#pragmas, which we then merrily turn into an error -- #pragma is inherently
compiler-specific!
master
Nat Goodspeed 2014-12-16 13:54:29 -05:00
parent f884c008d5
commit 1bd8a67dcb
1 changed files with 2 additions and 0 deletions

View File

@ -38,7 +38,9 @@
namespace
{
#ifdef __clang__
# pragma clang diagnostic ignored "-Wunused-function"
#endif
void test_that_error_h_includes_enough_things_to_compile_a_message()
{
LL_INFOS() << "!" << LL_ENDL;