configure: enable -Wformat=2
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl-health.cpp
index 2a992830d5a41209cb99c162b71c6d2a4e38f57c..8a703b019e14b04a8536aa26dc9d35c28c98fb66 100644 (file)
@@ -214,8 +214,11 @@ int set_health_socket_path(struct lttng_health *lh,
                home = "/tmp";
        }
 
+       DIAGNOSTIC_PUSH
+       DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL
        ret = snprintf(lh->health_sock_path, sizeof(lh->health_sock_path),
                        home_str, home);
+       DIAGNOSTIC_POP
        if ((ret < 0) || (ret >= sizeof(lh->health_sock_path))) {
                return -ENOMEM;
        }
This page took 0.02371 seconds and 4 git commands to generate.