Re: unknown conversion %m - Mailing list pgsql-hackers

From Tom Lane
Subject Re: unknown conversion %m
Date
Msg-id 7051.1303879847@sss.pgh.pa.us
Whole thread Raw
In response to unknown conversion %m  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: unknown conversion %m  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> All or almost all the warnings seen on Windows/Mingw of the type 
> "warning: unknown conversion type character 'm' in format" come from 
> checking of three functions: errmsg, elog and errdetail. I therefore 
> propose to disable the attribute checking of those three functions, on 
> Windows only (since that's the only place I've seen the warnings). 
> That's a much more conservative change than I made previously which 
> would have turned off all format warnings on Mingw, and along with 
> fixing the INT64_FORMAT (see email just sent) would fix the vast 
> majority of compiler warnings, so we'd be almost clean again on MinGW.

That seems to me to be throwing the baby out with the bathwater.
If Windows could be assumed to be just like every other platform,
we could maybe figure that being format-warning-free elsewhere
was sufficient checking; but that assumption is obviously wrong.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: unknown conversion %m
Next
From: Tom Lane
Date:
Subject: Re: offline consistency check and info on attributes