hi,
The icc version that I use is 'icc (ICC) 14.0.2 20140120' in linux.
Some elements in some structs are declared as deprecated. Some functions will use those deprecated elements.
For example, __attribute__((deprecated)) int *val;
If gcc is used, the following preprocessor lines can turn off and on 'deprecated warning'
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
If icc is used. how to turn off and on 'deprecated warning' in source code, but not in compiling flags.
Thanks!
Regards
Andrew
Thread Topic:
How-To