summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-25 18:08:21 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-25 18:23:50 +0200
commit6a5b28def26171a378d3d1012c3921ac4ffeca8e (patch)
treee7dbcf13002bf2c2de84c74e3999d0eb1b725eb0 /src/test
parentMerge pull request #15167 from ssahani/address-gen-mode (diff)
downloadsystemd-6a5b28def26171a378d3d1012c3921ac4ffeca8e.tar.xz
systemd-6a5b28def26171a378d3d1012c3921ac4ffeca8e.zip
json: use our regular way to turn off compiler warnings
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-json.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test-json.c b/src/test/test-json.c
index c72cd74274..032619a425 100644
--- a/src/test/test-json.c
+++ b/src/test/test-json.c
@@ -231,10 +231,9 @@ static void test_zeroes(JsonVariant *v) {
assert_se(json_variant_integer(w) == 0);
assert_se(json_variant_unsigned(w) == 0U);
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wfloat-equal"
+ DISABLE_WARNING_FLOAT_EQUAL;
assert_se(json_variant_real(w) == 0.0L);
-#pragma GCC diagnostic pop
+ REENABLE_WARNING;
assert_se(json_variant_is_integer(w));
assert_se(json_variant_is_unsigned(w));