build: avoid compiler warnings about non-constant format strings (-Wformat-nonliteral)

This commit is contained in:
Thomas Haller
2016-06-05 11:46:06 +02:00
parent b1e267cd8a
commit 466bf2f633
10 changed files with 45 additions and 35 deletions

View File

@@ -571,7 +571,9 @@ _create_export_path (NMExportedObjectClass *klass)
g_hash_table_insert (prefix_counters, g_strdup (class_export_path), counter);
}
NM_PRAGMA_WARNING_DISABLE("-Wformat-nonliteral")
return g_strdup_printf (class_export_path, (*counter)++);
NM_PRAGMA_WARNING_REENABLE
}
return g_strdup (class_export_path);