Pelles C forum

Pelles C => Feature requests => Topic started by: jullien on August 18, 2014, 06:58:39 am

Title: Please add -wdxxxx to disable warning xxxx from command line
Post by: jullien 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