json: use our regular way to turn off compiler warnings

This commit is contained in:
Lennart Poettering
2020-05-25 18:23:50 +02:00
parent 1283366a90
commit 6a5b28def2
3 changed files with 20 additions and 21 deletions
+4
View File
@@ -114,6 +114,10 @@
_Pragma("GCC diagnostic push")
#endif
#define DISABLE_WARNING_FLOAT_EQUAL \
_Pragma("GCC diagnostic push"); \
_Pragma("GCC diagnostic ignored \"-Wfloat-equal\"")
#define REENABLE_WARNING \
_Pragma("GCC diagnostic pop")