configure: remove -Wno-format-nonliteral
[babeltrace.git] / src / lib / lib-logging.c
index 88be5c769e6ac2b59fb953aa262bc2c5b508adfe..e4d3ac20c448fd470cb5dce4c33bc1074359fc9e 100644 (file)
@@ -331,6 +331,8 @@ static inline void format_field_integer_extended(char **buf_ch,
                fmt = ", %svalue=%" PRIx64;
        }
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-nonliteral"
        if (field_class->common.type == BT_FIELD_CLASS_TYPE_SIGNED_INTEGER ||
                        field_class->common.type == BT_FIELD_CLASS_TYPE_SIGNED_ENUMERATION) {
                if (!fmt) {
@@ -345,6 +347,7 @@ static inline void format_field_integer_extended(char **buf_ch,
 
                BUF_APPEND(fmt, PRFIELD(integer->value.u));
        }
+#pragma GCC diagnostic pop
 }
 
 static inline void format_field(char **buf_ch, bool extended,
This page took 0.02292 seconds and 4 git commands to generate.