summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-04-28 09:59:36 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-04-28 13:33:17 +0200
commit39a8ef05cdbb44758752bbe491b895672ce0e811 (patch)
tree7fb08b179b22208379aeef47df39f1fa45c0b1c1 /src/shared
parenthwdb: Add a common Logitech M185/M225 mouse variant (diff)
downloadsystemd-39a8ef05cdbb44758752bbe491b895672ce0e811.tar.xz
systemd-39a8ef05cdbb44758752bbe491b895672ce0e811.zip
various: drop unnecessary DISABLE_WARNING_FORMAT_NONLITERAL
We use _printf_ for these functions, so there shouldn't be a warning in the first place.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ptyfwd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c
index 7bd8dd6d89..897e39c533 100644
--- a/src/shared/ptyfwd.c
+++ b/src/shared/ptyfwd.c
@@ -1084,9 +1084,7 @@ int pty_forward_set_titlef(PTYForward *f, const char *format, ...) {
return -EBUSY;
va_start(ap, format);
- DISABLE_WARNING_FORMAT_NONLITERAL;
r = vasprintf(&title, format, ap);
- REENABLE_WARNING;
va_end(ap);
if (r < 0)
return -ENOMEM;