summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2014-12-05 08:48:10 -0500
committerNat Goodspeed <nat@lindenlab.com>2014-12-05 08:48:10 -0500
commitc54d102c8f7f336e3ad2144710e51062b5eeac97 (patch)
tree49954af2dd879f0c908ce41ae1411b54655cbcbe
parentcfbc982b40ff90c180144eece5edcb4d42dcbc37 (diff)
Wrap #pragma clang in #if __clang__, else VS produces fatal warnings.
-rwxr-xr-xindra/test/lltut.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/test/lltut.h b/indra/test/lltut.h
index b334fb51e2..9835565bb6 100755
--- a/indra/test/lltut.h
+++ b/indra/test/lltut.h
@@ -75,10 +75,14 @@ namespace tut
// overloads declared above.
// turn off warnings about unused functions from clang for tut package
+#if __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-function"
+#endif
#include <tut/tut.hpp>
+#if __clang__
#pragma clang diagnostic pop
+#endif
// The functions BELOW this point actually consume tut.hpp functionality.
namespace tut