util/Manual: work around strict-aliasing warning

This commit is contained in:
Max Kellermann 2013-04-11 00:01:08 +02:00
parent 1729388634
commit d300e6bf21

View File

@ -40,6 +40,11 @@
#include <assert.h>
#if defined(__clang__) || GCC_CHECK_VERSION(4,7)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif
/**
* Container for an object that gets constructed and destructed
* manually. The object is constructed in-place, and therefore
@ -108,4 +113,8 @@ public:
}
};
#if defined(__clang__) || GCC_VERSION >= 40700
#pragma GCC diagnostic pop
#endif
#endif