24.02
|
Go to the documentation of this file.
9 # define ARMNN_NO_CONVERSION_WARN_BEGIN \
10 _Pragma("GCC diagnostic push") \
11 _Pragma("GCC diagnostic ignored \"-Wconversion\"") \
12 _Pragma("GCC diagnostic ignored \"-Wsign-conversion\"")
14 # define ARMNN_NO_CONVERSION_WARN_END \
15 _Pragma("GCC diagnostic pop")
18 # define ARMNN_NO_CONVERSION_WARN_BEGIN \
19 _Pragma("clang diagnostic push") \
20 _Pragma("clang diagnostic ignored \"-Wconversion\"") \
21 _Pragma("clang diagnostic ignored \"-Wsign-conversion\"")
23 # define ARMNN_NO_CONVERSION_WARN_END \
24 _Pragma("clang diagnostic pop")
26 #elif defined (_MSC_VER)
27 # define ARMNN_NO_CONVERSION_WARN_BEGIN \
28 __pragma(warning( push )) \
29 __pragma(warning(disable : 4101)) \
30 __pragma(warning(disable : 4267))
32 # define ARMNN_NO_CONVERSION_WARN_END \
33 __pragma(warning( pop ))
36 # define ARMNN_NO_CONVERSION_WARN_BEGIN
37 # define ARMNN_NO_CONVERSION_WARN_END
40 #define ARMNN_SUPRESS_CONVERSION_WARNING(func) \
41 ARMNN_NO_CONVERSION_WARN_BEGIN \
43 ARMNN_NO_CONVERSION_WARN_END