Fixed warning for GCC on visual studio

This commit is contained in:
TokyoSU
2022-07-05 18:18:19 +02:00
parent 7e22643135
commit 00ba0c93a5

View File

@@ -11,11 +11,15 @@ extern "C" {
#ifndef RAYMATH_STATIC_INLINE
#define RAYMATH_STATIC_INLINE
#endif
#pragma GCC diagnostic push
#ifdef __GNUC__
#pragma GCC diagnostic push // these throw a warning on visual studio, need to check if __GNUC__ is defined to use it.
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
#include "raymath.h" // NOLINT
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#endif
#ifdef __cplusplus
}
#endif