r233053 - Silence unused warning in non-assert builds.

Daniel Jasper djasper at google.com
Tue Mar 24 01:06:38 PDT 2015


Author: djasper
Date: Tue Mar 24 03:06:38 2015
New Revision: 233053

URL: http://llvm.org/viewvc/llvm-project?rev=233053&view=rev
Log:
Silence unused warning in non-assert builds.

Modified:
    cfe/trunk/lib/Serialization/ASTWriter.cpp

Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=233053&r1=233052&r2=233053&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Tue Mar 24 03:06:38 2015
@@ -5597,6 +5597,7 @@ void ASTWriter::FlushCXXCtorInitializers
   RecordData Record;
 
   unsigned N = CXXCtorInitializersToWrite.size();
+  (void)N; // Silence unused warning in non-assert builds.
   for (auto &Init : CXXCtorInitializersToWrite) {
     Record.clear();
 





More information about the cfe-commits mailing list