Wrap #pragma clang in #if __clang__, else VS produces fatal warnings.
parent
cfbc982b40
commit
c54d102c8f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue