Wrap #pragma clang in #if __clang__, else VS produces fatal warnings.

master
Nat Goodspeed 2014-12-05 08:48:10 -05:00
parent cfbc982b40
commit c54d102c8f
1 changed files with 4 additions and 0 deletions

View File

@ -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