NO

Author Topic: Please add -wdxxxx to disable warning xxxx from command line  (Read 4022 times)

jullien

  • Guest
Please add -wdxxxx to disable warning xxxx from command line
« on: August 18, 2014, 06:58:39 AM »
Hi,

I made few bug reports about warnings. One solution is to add pragma in my source code but, as #pragma are different for all compilers, I must surround them by #if defined(__POCC) .. #endif
doing this for all compilers I support. Source code becomes ugly.

It is possible to support -wdxxxx/-wxxxx command line option (as with MSVC) to disable/enable a specific warning? gcc has a similar way to handle warning from command line.

For example: -W2 -wd2802 allows level 2 warnings except warning #2802

Thanks in advance

Christian