On 10/02/13 13:11, Andrew Gregory wrote: > GCC is smart enough not to issue a warning when calling a printf > function using a va_list; clang is not. Selectively disable the warning > using pragmas to allow building with warnings using clang. > > Signed-off-by: Andrew Gregory <[email protected]> > --- > > Adding a bunch of pragmas doesn't strike me as an ideal solution, but clang's > warning flag documentation is non-existent and I can't find another solution > other than removing -Wformat-nonliteral altogether. >
Ugh... definitely not! Solution is to add a format attribute: http://clang.llvm.org/docs/LanguageExtensions.html#format-string-checking Allan
