http://bugs.winehq.org/show_bug.cgi?id=16339
Summary: setupapi/tests: format not a string literal and no format arguments Product: Wine Version: 1.1.9 Platform: PC OS/Version: Linux Status: NEW Keywords: download, patch, source Severity: minor Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Created an attachment (id=17644) --> (http://bugs.winehq.org/attachment.cgi?id=17644) patch
gcc -c -I. -I. -I../../../include -I../../../include -D_REENTRANT -fPIC -Wall -pipe -fno-strength-reduce -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -Werror -o devinst.o devinst.c cc1: warnings being treated as errors devinst.c: In function ‘append_str’: devinst.c:325: error: format not a string literal and no format arguments make[2]: *** [devinst.o] Error 1 make[2]: Leaving directory `/home/austin/wine-git/dlls/setupapi/tests' make[1]: *** [setupapi/tests] Error 2 make[1]: Leaving directory `/home/austin/wine-git/dlls' make: *** [dlls] Error 2
gcc -c -I. -I. -I../../../include -I../../../include -D_REENTRANT -fPIC -Wall -pipe -fno-strength-reduce -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -Werror -o misc.o misc.c cc1: warnings being treated as errors misc.c: In function ‘append_str’: misc.c:52: error: format not a string literal and no format arguments make: *** [misc.o] Error 1
gcc -c -I. -I. -I../../../include -I../../../include -D_REENTRANT -fPIC -Wall -pipe -fno-strength-reduce -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -Werror -o query.o query.c cc1: warnings being treated as errors query.c: In function ‘append_str’: query.c:48: error: format not a string literal and no format arguments make: *** [query.o] Error 1
Attached patch fixes the issue, but may not be a proper fix.
Only occurs on gcc 4.3+