configure: enable -Wsuggest-attribute=format
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_autodisc.i.h
index 612c9328fd8c6a60a05a528e08a735d2318e0600..cb1bd84a4170443fdc8d386ef1a496a104410220 100644 (file)
@@ -70,9 +70,10 @@ bt_value *bt_bt2_auto_discover_source_components(const bt_value *inputs,
 
        result = bt_value_map_create();
        if (!result) {
-               static const char * const err = "Failed to create a map value.";
-               BT_LOGE_STR(err);
-               BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name, err);
+#define BT_FMT "Failed to create a map value."
+               BT_LOGE_STR(BT_FMT);
+               BT_CURRENT_THREAD_ERROR_APPEND_CAUSE_FROM_UNKNOWN(module_name, BT_FMT);
+#undef BT_FMT
                PyErr_NoMemory();
                goto end;
        }
This page took 0.022461 seconds and 4 git commands to generate.