Conditionally compile clang pragmas

This commit is contained in:
Phil Nash 2012-08-16 18:47:41 +01:00
parent c1dbc9c22b
commit cda21492a8
9 changed files with 25 additions and 1 deletions

View file

@ -9,11 +9,12 @@
#ifndef TWOBLUECUBES_CATCH_HPP_INCLUDED
#define TWOBLUECUBES_CATCH_HPP_INCLUDED
#ifdef __clang__
#pragma clang diagnostic ignored "-Wno-global-constructors"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
#endif
#include "internal/catch_notimplemented_exception.h"
#include "internal/catch_context.h"
@ -132,6 +133,8 @@
using Catch::Detail::Approx;
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TWOBLUECUBES_CATCH_HPP_INCLUDED