Created attachment 550573 [details] [diff] [review] Proposed patch Like cairo does. http://mxr.mozilla.org/mozilla-central/source/gfx/cairo/cairo/src/cairo-compiler-private.h#109 108 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) 109 #define CAIRO_PRINTF_FORMAT(fmt_index, va_index) \ 110 __attribute__((__format__(__printf__, fmt_index, va_index)))
Created attachment 550618 [details] [diff] [review] Correct position Apparently NSPR_[PRINTF|SCANF]_FORMAT were in a wrong ifdef block.
hiro: thank you for the suggestion and the patch. Unfortunately we can't do this because NSPR uses the %ld and %hd integer formats in a nonstandard way.