summaryrefslogtreecommitdiffstats
path: root/src/fstab-generator/fstab-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-25 18:16:33 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-25 18:25:05 +0200
commit56e577c62ff358d2abcc966559014e9e7d36d90c (patch)
treef863ef98b26e77025b8f9971ed2847a3fdd5c636 /src/fstab-generator/fstab-generator.c
parentjson: use our regular way to turn off compiler warnings (diff)
downloadsystemd-56e577c62ff358d2abcc966559014e9e7d36d90c.tar.xz
systemd-56e577c62ff358d2abcc966559014e9e7d36d90c.zip
tree-wide: use DISABLE_WARNING_FORMAT_NONLITERAL where appropriate
Diffstat (limited to 'src/fstab-generator/fstab-generator.c')
-rw-r--r--src/fstab-generator/fstab-generator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index 36a8ff23d4..77b90e1a9b 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -263,10 +263,10 @@ static int write_dependency(
res = strv_join(units, " ");
if (!res)
return log_oom();
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+
+ DISABLE_WARNING_FORMAT_NONLITERAL;
fprintf(f, format, res);
-#pragma GCC diagnostic pop
+ REENABLE_WARNING;
}
return 0;