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

From Andrew Dunstan
Subject Re: unknown conversion %m
Date
Msg-id 4DB83D27.30505@dunslane.net
Whole thread Raw
In response to Re: unknown conversion %m  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: unknown conversion %m  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers

On 04/27/2011 11:02 AM, Tom Lane wrote:
>
> So the question to ask is not why gcc doesn't complain about %m
> elsewhere, but why it does complain in your Windows installation.
> I'm guessing that the mingw people hacked it.  If you're lucky,
> they might have hacked in an extra switch to control the behavior ---
> I notice quite a few subsidiary switches that tweak -Wformat behavior
> in standard gcc 4.4.5.
>


Hmm. The error disappears if I use -D__USE_MINGW_ANSI_STDIO=1 or -posix


I don't know what other effects that might have, though. There's a 
description here: 
<http://sourceforge.net/project/shownotes.php?release_id=24832> I'll 
experiment and see what happens.

cheers

andrew




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Alignment padding bytes in arrays vs the planner
Next
From: Peter Eisentraut
Date:
Subject: timeline garbage in pg_basebackup (was gcc 4.6 warnings -Wunused-but-set-variable)