<div dir="ltr"><div>It looks like this is just a #warning, not a "real" deprecation warning from looking at that source file.</div><div><br></div>clang prints "./test.h:7:3: warning: "deprecated" [-W#warnings]" for me, and passing -Wno-#warnings makes it go away.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 18, 2014 at 11:27 PM, Rashad M <span dir="ltr"><<a href="mailto:mohammedrashadkm@gmail.com" target="_blank">mohammedrashadkm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">vcl_deprecated.h</a></div></div><div><br></div><div><br></div><div>Thanks for any help</div>
<span class="HOEnZb"><font color="#888888"><div><br></div>

-- <br><div><font face="arial, helvetica, sans-serif">Regards,<br>   Rashad</font></div>
</font></span></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>