summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2014-12-16 13:54:29 -0500
committerNat Goodspeed <nat@lindenlab.com>2014-12-16 13:54:29 -0500
commit1bd8a67dcbc2645565a2b95fa1424ffd0eb8d538 (patch)
treeff2527bec882a43444b63795478f447e40108a99 /indra/llcommon/tests
parentf884c008d5bb693ca93f6bf28221528666816e7e (diff)
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!
Diffstat (limited to 'indra/llcommon/tests')
-rwxr-xr-xindra/llcommon/tests/llerror_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llcommon/tests/llerror_test.cpp b/indra/llcommon/tests/llerror_test.cpp
index fee9492618..f51279e817 100755
--- a/indra/llcommon/tests/llerror_test.cpp
+++ b/indra/llcommon/tests/llerror_test.cpp
@@ -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;