GNOME Bugzilla – Bug 720082
fix up non-literal format string issues
Last modified: 2013-12-09 16:29:32 UTC
See patch.
Created attachment 263774 [details] [review] fix up non-literal format string issues Fix up a couple of errors picked up by -Werror=format-nonliteral on clang.
Comment on attachment 263774 [details] [review] fix up non-literal format string issues >-static char * >+G_GNUC_PRINTF (2, 0) static char * There was some bug earlier where it turned out that some version of clang didn't like having attributes attached to function definitions; they could only be attached to function prototypes. So, it would be better to split out a prototype for the function first, with the annotation, and then leave the actual definition as it was. ok to commit with that change
I (thought I?) hit an issue when i put the G_GNUC_PRINTF at the end... so that's why I put it at the start like this, which seemed to make it work. Applying a similar change to another project, though, I found that it worked at the end again... Do you have a reference to the problem that was reported before?
bug 708793 comment 2
Attachment 263774 [details] pushed as c2c2ecb - fix up non-literal format string issues