GNOME Bugzilla – Bug 720208
owm: rework uri API key logic to use #define
Last modified: 2013-12-10 20:02:52 UTC
See patch.
Created attachment 263939 [details] [review] owm: rework uri API key logic to use #define Rework the logic for the URI template to use preprocessor defines instead of a local variable. This means that we get proper checking of the format string and avoid the failure to compile under clang when -Werror=format-nonliteral is used (as it is by default in our CFLAGS from gnome-common).
Review of attachment 263939 [details] [review]: Well, clang should really recognize that the format is a string literal in this case (because it does constant propagation after all...), but ok.