Adam Jackson <a...@redhat.com> writes: > With -Wformat-nonliteral and a debug build you'd get yelled at here: > > ../hw/xfree86/x86emu/x86emu/debug.h:188:9: warning: format not a string > literal, argument types not checked [-Wformat-nonliteral] > > To fix this, rewrite the printf code to actually use varargs and the > appropriate format attribute. All callers of DECODE_PRINTF() pass a > string with no % specifiers, so we pass that as the argument to > printf("%s"). For DECODE_PRINTF2() we just pass the args through. > > Signed-off-by: Adam Jackson <a...@redhat.com>
Reviewed-by: Eric Anholt <e...@anholt.net>
signature.asc
Description: PGP signature
_______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel