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

compiler-warning suppression for clang added

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