Commit 3ec67a44 authored by Robert Menzel's avatar Robert Menzel

compiler-warning suppression for clang added

parent e07f05dd
......@@ -22,16 +22,33 @@
* risk of not seeing ACGL warnings.
*/
#if (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) || (__GNUC__ > 4))
# pragma GCC diagnostic push
#define COMPILER_IS_GCC_4_6_OR_NEWER
#endif
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wtype-limits"
#define GLM_SWIZZL
#ifdef __clang__
// clang/llvm:
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wuninitialized"
# pragma clang diagnostic ignored "-Wunused-parameter"
#elif defined __GNUC__
# ifdef COMPILER_IS_GCC_4_6_OR_NEWER
// gcc >= 4.6:
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wtype-limits"
# endif
// gcc:
# pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#if (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) || (__GNUC__ > 4))
# pragma GCC diagnostic pop
#ifdef __clang__
// clang/llvm:
# pragma clang diagnostic pop
#elif defined COMPILER_IS_GCC_4_6_OR_NEWER
// gcc >= 4.6:
# pragma GCC diagnostic pop
#endif
#include <ACGL/Math/Constants.hh>
......
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