kbuild: fix warnings by specifing format arguments
PATCH 1/1 kbuild: fix warnings by specifing format arguments
Specify format arguments to fix warnings.
HOSTCC scripts/kconfig/gconf.o/usr/src/lto/scripts/kconfig/gconf.c: In function 'on_introduction1_activate':/usr/src/lto/scripts/kconfig/gconf.c:686:6: warning: format not a string literal and no format arguments /usr/src/lto/scripts/kconfig/gconf.c: In function 'on_about1_activate':/usr/src/lto/scripts/kconfig/gconf.c:704:6: warning: format not a string literal and no format arguments /usr/src/lto/scripts/kconfig/gconf.c: In function 'on_license1_activate':/usr/src/lto/scripts/kconfig/gconf.c:723:6: warning: format not a string literal and no format arguments
--- scripts/kconfig/gconf.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
scripts/kconfig/gconf.c +3 -3
@@ -683,7 +683,7 @@ void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data) dialog =gtk_message_dialog_new (GTK_WINDOW (main_wnd),GTK_DIALOG_DESTROY_WITH_PARENT ,GTK_MESSAGE_INFO , -GTK_BUTTONS_CLOSE , intro_text); +GTK_BUTTONS_CLOSE ,"%s" , intro_text);g_signal_connect_swapped (GTK_OBJECT (dialog),"response" ,G_CALLBACK (gtk_widget_destroy),GTK_OBJECT (dialog));
@@ -701,7 +701,7 @@ void on_about1_activate(GtkMenuItem * menuitem, gpointer user_data) dialog =gtk_message_dialog_new (GTK_WINDOW (main_wnd),GTK_DIALOG_DESTROY_WITH_PARENT ,GTK_MESSAGE_INFO , -GTK_BUTTONS_CLOSE , about_text); +GTK_BUTTONS_CLOSE ,"%s" , about_text);g_signal_connect_swapped (GTK_OBJECT (dialog),"response" ,G_CALLBACK (gtk_widget_destroy),GTK_OBJECT (dialog));
@@ -720,7 +720,7 @@ void on_license1_activate(GtkMenuItem * menuitem, gpointer user_data) dialog =gtk_message_dialog_new (GTK_WINDOW (main_wnd),GTK_DIALOG_DESTROY_WITH_PARENT ,GTK_MESSAGE_INFO , -GTK_BUTTONS_CLOSE , license_text); +GTK_BUTTONS_CLOSE ,"%s" , license_text);g_signal_connect_swapped (GTK_OBJECT (dialog),"response" ,G_CALLBACK (gtk_widget_destroy),GTK_OBJECT (dialog));
Signature · 1 line
1.7.7
Quoted 10 lines · Peter Foley
Specify format arguments to fix warnings.
HOSTCC
scripts/kconfig/gconf.o/usr/src/lto/scripts/kconfig/gconf.c: In function 'on_introduction1_activate':/usr/src/lto/scripts/kconfig/gconf.c:686:6: warning: format not a string literal and no format arguments/usr/src/lto/scripts/kconfig/gconf.c: In function 'on_about1_activate':/usr/src/lto/scripts/kconfig/gconf.c:704:6: warning: format not a string literal and no format arguments/usr/src/lto/scripts/kconfig/gconf.c: In function 'on_license1_activate':/usr/src/lto/scripts/kconfig/gconf.c:723:6: warning: format not a string literal and no format arguments
Quoted 4 lines
Signed-off-by Peter Foley <[email protected]>--- scripts/kconfig/gconf.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Applied to kbuild.git#kconfig.
Michal