[PATCH v2 1/6] gccmacro: Disable printf-like format checking on mingw32 compilers.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mardi 21 ao?t 2012 00:50:34 Thomas Martitz, vous avez ?crit :
> There are tons of warnings, most of them because the function is not
> recognized as printf-like.

Removing checks looks very fishy.

To use C99 and/or GNU format specifiers on MingW, you need to use the 
gnuprintf attribute instead of printf. With printf, the format string is 
validated according to the antiquated MSVC rules.

-- 
R?mi Denis-Courmont
C/C++ software engineer looking for a job
http://www.linkedin.com/in/remidenis


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux