GNOME Bugzilla – Bug 559291
warning: format not a string literal and no format arguments
Last modified: 2009-01-11 20:15:39 UTC
If I compile Gnumeric, I get a lot of warnings. The following patch will fix the warnings on 'format not a string literal and no format arguments'.
Created attachment 121963 [details] [review] Fix no string literal compile warnings
I don't know how you got those warnings, but could you please do the same thing for libgsf and goffice?
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Created attachment 121966 [details] [review] Patch for libgoffice
Created attachment 121967 [details] [review] Patch for libgsf
I am reopening to make sure we do not miss the last two patches.
libgsf handled. I used g_error_new_literal a few places.
*** Bug 565904 has been marked as a duplicate of this bug. ***
That goffice patch is actually wrong. Using %s kills the formatting. Undoing. Index: goffice/gtk/goffice-gtk.c =================================================================== --- goffice/gtk/goffice-gtk.c (revision 2263) +++ goffice/gtk/goffice-gtk.c (working copy) @@ -922,7 +922,7 @@ GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK_CANCEL, - msg); + "%s", msg); gtk_dialog_set_default_response (GTK_DIALOG (dialog), overwrite_by_default ? GTK_RESPONSE_OK : GTK_RESPONSE_CANCEL); result = GTK_RESPONSE_OK ==