r189028 - Work around unused variable warning in release builds.

Daniel Jasper djasper at google.com
Thu Aug 22 09:11:46 PDT 2013


Author: djasper
Date: Thu Aug 22 11:11:46 2013
New Revision: 189028

URL: http://llvm.org/viewvc/llvm-project?rev=189028&view=rev
Log:
Work around unused variable warning in release builds.

Modified:
    cfe/trunk/lib/Format/Format.cpp

Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=189028&r1=189027&r2=189028&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Thu Aug 22 11:11:46 2013
@@ -439,6 +439,7 @@ private:
     for (std::deque<StateNode *>::iterator I = Path.begin(), E = Path.end();
          I != E; ++I) {
       unsigned Penalty = Indenter->addTokenToState(State, (*I)->NewLine, false);
+      (void)Penalty;
       DEBUG({
         if ((*I)->NewLine) {
           llvm::dbgs() << "Penalty for placing "





More information about the cfe-commits mailing list