<html><body bgcolor="#FFFFFF"><div><br><br>Sent from my iPhone</div><div><br>On Sep 6, 2010, at 1:22 AM, Romain Pechayre <<a href="mailto:rpechayr@gmail.com">rpechayr@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Sure,<div><br></div><div>Here is an warning example I have from boost headers:</div><div>[some path]/boost/accumulators/accumulators.hpp:21:</div><div>[some_other_path]/boost/accumulators/framework/parameters/weights.hpp:17:1: warning: unused variable 'weights' [-Wunused-variable]</div>

<div>BOOST_PARAMETER_KEYWORD(tag, weights)</div><div>                                                            ^</div><div>I am using boost 1_43 and working on a very recent svn build of clang (less than 3 days old). </div>

<div>Please let me know if I can give any additional information</div></div></blockquote><div><br></div><div>Clang is doing something reasonable here, IMO. <span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">BOOST_PARAMETER_KEYWORD should have the unused attribute on it. </span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">  - Doug</span></div><div><br></div><blockquote type="cite"><div><div>Romain<br>
<br><br><div class="gmail_quote">On Fri, Sep 3, 2010 at 5:57 PM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com"><a href="mailto:dgregor@apple.com">dgregor@apple.com</a></a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
On Sep 3, 2010, at 8:15 AM, Romain Pechayre wrote:<br>
<br>
> Hello all,<br>
><br>
> I've been using clang for a few days to build c++ code at work, and I really enjoy it !<br>
> I am almost ready to drop my gcc build config (debug), but I am having a lot of warning !<br>
><br>
> As I am manually passing path to the right includes using -I/path-to-stl-headers, I get a few warning on stl headers that are repeated again and again.For example, I get a warning for some template specialisations saying that a struct is already declared whereas it is a template specialisation.<br>


> Is this something expected ? Can I fix it by hardcoding the path as explained on clang website ?<br>
><br>
<br>
</div>You can use -isystem instead of -I.<br>
<div class="im"><br>
> In addition to that, I get a lot of warning from boost macros, since clang is telling me that an argument (say "weights") is unused, whereas it is actually used as part of the name of a struct. So I was wondering it these warnings where real ones or it there was something wrong ...<br>


<br>
</div>Can you show us the specific warning that you're seeing?<br>
<br>
        - Doug<br>
<br>
</blockquote></div><br></div>
</div></blockquote></body></html>