Loading...
Searching...
No Matches
Go to the documentation of this file.
14#ifndef PLASK_WARNINGS_H
15#define PLASK_WARNINGS_H
22 #define PLASK_PRAGMA(x) __pragma(x)
25 #define PLASK_PRAGMA(x) _Pragma(#x)
31 #define PLASK_UNUSED(arg) arg
33 #define PLASK_UNUSED(arg)
40#define PLASK_NO_CONVERSION_WARNING_BEGIN \
41 PLASK_PRAGMA(warning(push)) \
42 PLASK_PRAGMA(warning(disable: 4244))
44#define PLASK_NO_UNUSED_VARIABLE_WARNING_BEGIN \
45 PLASK_PRAGMA(warning(push))
48#define PLASK_NO_WARNING_END \
49 PLASK_PRAGMA(warning(pop))
53#elif defined(__GNUC__)
55#define PLASK_NO_CONVERSION_WARNING_BEGIN \
56 PLASK_PRAGMA(GCC diagnostic push) \
57 PLASK_PRAGMA(GCC diagnostic ignored "-Wconversion")
59#define PLASK_NO_UNUSED_VARIABLE_WARNING_BEGIN \
60 PLASK_PRAGMA(GCC diagnostic push) \
61 PLASK_PRAGMA(GCC diagnostic ignored "-Wunused-variable")
63#define PLASK_NO_WARNING_END \
64 PLASK_PRAGMA(GCC diagnostic pop)
71#define PLASK_NO_CONVERSION_WARNING_BEGIN
74#define PLASK_NO_UNUSED_VARIABLE_WARNING_BEGIN
77#define PLASK_NO_WARNING_END