Go to the documentation of this file.
37 #ifndef FCL_COMMON_WARNING_H
38 #define FCL_COMMON_WARNING_H
40 #include "fcl/config.h"
55 #if defined (FCL_COMPILER_GCC)
57 #define FCL_SUPPRESS_DEPRECATED_BEGIN \
58 _Pragma("GCC diagnostic push") \
59 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
61 #define FCL_SUPPRESS_DEPRECATED_END \
62 _Pragma("GCC diagnostic pop")
64 #define FCL_SUPPRESS_UNINITIALIZED_BEGIN \
65 _Pragma("GCC diagnostic push") \
66 _Pragma("GCC diagnostic ignored \"-Wuninitialized\"")
68 #define FCL_SUPPRESS_UNINITIALIZED_END \
69 _Pragma("GCC diagnostic pop")
71 #elif defined (FCL_COMPILER_CLANG)
73 #define FCL_SUPPRESS_DEPRECATED_BEGIN \
74 _Pragma("clang diagnostic push") \
75 _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
77 #define FCL_SUPPRESS_DEPRECATED_END \
78 _Pragma("clang diagnostic pop")
80 #define FCL_SUPPRESS_UNINITIALIZED_BEGIN \
81 _Pragma("clang diagnostic push") \
82 _Pragma("clang diagnostic ignored \"-Wuninitialized\"")
84 #define FCL_SUPPRESS_UNINITIALIZED_END \
85 _Pragma("clang diagnostic pop")
87 #elif defined (FCL_COMPILER_MSVC)
89 #define FCL_SUPPRESS_DEPRECATED_BEGIN \
90 __pragma(warning(push)) \
91 __pragma(warning(disable:4996))
93 #define FCL_SUPPRESS_DEPRECATED_END \
94 __pragma(warning(pop))
96 #define FCL_SUPPRESS_UNINITIALIZED_BEGIN // TODO
98 #define FCL_SUPPRESS_UNINITIALIZED_END // TODO
102 #endif // FCL_COMMON_WARNING_H
fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:49