On 1/14/2012 17:08, Kai Tietz wrote:
> 
> JonY,
> 
> I don't see any need in decorating default-printf/scanf-family names
> by those macros.  They getting those default-styles by compiler itself
> and it isn't of any interest to write it explict here.
> 
> Kai

OK, I noted something interesting anyway:

This produces no warning, gets printf wrapper to ___mingw_vprintf.
echo 'int main(){printf("%llu\n",0ull); return 0;}'|i686-w64-mingw32-gcc
-xc++ -Wall -Wformat -include stdio.h -D__USE_MINGW_ANSI_STDIO=1 -O0 -
-s -S -o- -fno-builtin

This makes a warning, assembly code similar.
echo 'int main(){printf("%llu\n",0ull); return 0;}'|i686-w64-mingw32-gcc
-xc++ -Wall -Wformat -include stdio.h -D__USE_MINGW_ANSI_STDIO=1 -O0 -
-s -S -o-

No warnings for both if using -xc, maybe its my odd setup.

Btw, why are some of the msvcrt prototypes not declared with _CRTIMP anyway?

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to