On 12/4/2017 6:11 AM, sisyphus1@xxxxxxxxxxxxxxx wrote:
-----Original Message----- From: Mason
Sent: Monday, December 04, 2017 9:44 PM
To: Edward Diener
Cc: GCC help
Subject: Re: Using 'hhx' conversion in sscanf in c99 mode
On 04/12/2017 00:53, Edward Diener wrote:
[snip]
Why is the 'hh' modifier not supported in c99 ?
[snip]
I suspect you are using a Windows port, such as mingw?
I think that's probably right - I see the exact same warnings as
reported by the OP when I use MinGW.
Those warnings are silenced by defining __USE_MINGW_ANSI_STDIO to a true
value - either by adding -D__USE_MINGW_ANSI_STDIO to the command line
args that build the program, or by inserting:
#define __USE_MINGW_ANSI_STDIO 1
at the very beginning of the source script.
Thanks. I was indeed using mingw-64.
Cheers,
Rob