<div dir="ltr"><br clear="all"><div>Hi all,</div><div><br></div><div><div>For GNU C++ compiler i got warning deprecated header #Wcpp and I can easily turn off it using -Wno-cpp. The same flag does not have any effect on a clang compiler.</div>
<div><br></div><div>gcc version: 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC)</div><div><br></div><div>clang version: 3.3 (tags/RELEASE_33/final)</div><div><br></div><div>OS: Fedora 20 x86_64 Linux</div><div><br></div><div>Does anybody know the correct flag and its usage.</div>
<div><br></div><div>Warning output:</div><div><br></div><div>vcl_deprecated_header.h:10:3: warning: #warning "deprecated" [-Wcpp] # warning "deprecated"</div><div><br></div><div>I tried -Wno-deperecated but without any success. Removing the inclusion of the deprecated header is not something I want. This is because for some specific build for clang I want to disable this warning. But by default for anyone who compiles the warning should appear. And No, using -w to suppress everything is not something I want to do. </div>
<div><br></div><div>In GCC, g++ i can disable it via -Wno-cpp and gcc says</div><div><br></div><div>vcl_deprecated_header.h:10:3: warning: #warning "deprecated" [-Wcpp] # warning "-Wcpp"<br></div><div>
<br></div><div>header source : <a href="http://sourceforge.net/p/vxl/git/ci/master/tree/vcl/vcl_deprecated_header.h">vcl_deprecated.h</a></div></div><div><br></div><div><br></div><div>Thanks for any help</div><div><br></div>
-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br> Rashad</font></div>
</div>