Commit d300e6bf authored by Max Kellermann's avatar Max Kellermann

util/Manual: work around strict-aliasing warning

parent 17293886
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment