Re: mingw format warnings
От | Andrew Dunstan |
---|---|
Тема | Re: mingw format warnings |
Дата | |
Msg-id | 4D43431B.9020605@dunslane.net обсуждение исходный текст |
Ответ на | Re: mingw format warnings (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: mingw format warnings
|
Список | pgsql-hackers |
On 01/28/2011 03:11 PM, Tom Lane wrote: > Andrew Dunstan<andrew@dunslane.net> writes: >> We have had format warnings in mingw builds for years, and it doesn't >> look like we're ever going to do anything about them. Can we just add >> -Wno-format to the CFLAGS for Mingw and be done with them? > Are any of them substantive, or are they all about %m ? [andrew@aurelia ]$ grep 'warning.*format' frogmouth-make*.log | sed 's/.*warning:/warning:/' | sort | uniq -c 1 warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'DWORD' 1 warning: format '%0i' expects type 'int', but argument 4 has type 'DWORD' 1 warning: format '%0i' expects type 'int', but argument 5 has type 'DWORD' 1 warning: format '%-30s' expects type 'char *', but argument 6 has type 'int' 2 warning: format '%d' expects type 'int', but argument 3 has type 'DWORD' 2 warning: format '%i' expects type 'int', but argument 3 has type 'uint64' 2 warning: format '%i' expects type 'int', but argument 4 has type 'uint64' 3 warning: format not a string literal and no format arguments 1 warning: format '%s' expects type'char *', but argument 4 has type 'int64' 70 warning: too many arguments for format 1 warning: unknown conversion type character 'G' in format 73 warning: unknown conversion type character 'l' in format 360 warning: unknown conversion type character 'm'in format 1 warning: unknown conversion type character 'V' in format cheers andrew
В списке pgsql-hackers по дате отправления: