Message213744
If interested, I think the warnings can be selectively turned off:
#if defined (__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || (__GNUC__ >= 5))
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wformat-security"
#endif
unicode_fromformat_arg(...)
{
...
}
#if defined (__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || (__GNUC__ >= 5))
# pragma GCC diagnostic pop
#endif
Microsoft has a similar mechanism.
It should allow the project to compile with -Wformat-security full time while maintinaing a quiet compile (silent is good). |
|
Date |
User |
Action |
Args |
2014-03-16 17:58:23 | Jeffrey.Walton | set | recipients:
+ Jeffrey.Walton |
2014-03-16 17:58:23 | Jeffrey.Walton | set | messageid: <1394992703.89.0.915867274452.issue20948@psf.upfronthosting.co.za> |
2014-03-16 17:58:23 | Jeffrey.Walton | link | issue20948 messages |
2014-03-16 17:58:23 | Jeffrey.Walton | create | |
|