PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
DisableWarnings.h
Go to the documentation of this file.
1
22
23#ifndef PBAT_GPU_DISABLEWARNINGS_H
24#define PBAT_GPU_DISABLEWARNINGS_H
25
26#if defined(__clang__)
27 #pragma clang diagnostic ignored "-Wunknown-pragmas"
28 #pragma clang diagnostic ignored "-Wpadded"
29 #pragma clang diagnostic ignored "-Wdeprecated"
30#elif defined(__GNUC__) || defined(__GNUG__)
31 #pragma GCC diagnostic ignored "-Wunknown-pragmas"
32 #pragma GCC diagnostic ignored "-Wpadded"
33 #pragma GCC diagnostic ignored "-Wdeprecated"
34#elif defined(_MSC_VER)
35 #pragma warning(disable : 4068)
36 #pragma warning(disable : 4324)
37 #pragma warning(disable : 4127)
38 #pragma warning(disable : 4996)
39#endif
40
41#if defined(CUDART_VERSION)
42 #pragma nv_diag_suppress 3189
43 #pragma nv_diag_suppress 27 // Character out of range warning when using fmt::format
44 #pragma nv_diag_suppress 821 // extern inline function was referenced but not defined
45 #pragma nv_diag_suppress 186 // pointless comparison of unsigned integer with zero
46#endif
47
48#endif // PBAT_GPU_DISABLEWARNINGS_H