Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 2797

how to ignore deprecated warning

$
0
0

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

Viewing all articles
Browse latest Browse all 2797


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>