<div dir="ltr">Not necessarily possible/practical, since the macros could refer to different names based on the context in which they're used, etc (and there's only so much we can do to parse uninstantiated code)<br>
<br>Usually for cases where we have a debug variable that's used in asserts but not otherwise, we either #ifndef NDEBUG the variable, or add a "(void)var;" near the assert.</div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Tue, Nov 12, 2013 at 8:37 AM, Rafael Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: rafael<br>
Date: Tue Nov 12 10:37:31 2013<br>
New Revision: 194486<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=194486&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=194486&view=rev</a><br>
Log:<br>
Revert "Remove unused variable."<br>
<br>
This reverts commit r194485.<br>
<br>
The variable is unused in some macro instantiations, but not others. We should<br>
probably fix clang to not warn on this.<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/Support/YAMLTraits.h<br>
<br>
Modified: llvm/trunk/include/llvm/Support/YAMLTraits.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/YAMLTraits.h?rev=194486&r1=194485&r2=194486&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/YAMLTraits.h?rev=194486&r1=194485&r2=194486&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/include/llvm/Support/YAMLTraits.h (original)<br>
+++ llvm/trunk/include/llvm/Support/YAMLTraits.h Tue Nov 12 10:37:31 2013<br>
@@ -1069,6 +1069,7 @@ operator<<(Output &yout, T &seq) {<br>
           seq.resize(index+1);                                              \<br>
         return seq[index];                                                  \<br>
       }                                                                     \<br>
+      static const bool flow = true;                                        \<br>
     };                                                                      \<br>
   }                                                                         \<br>
   }<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>