r286796 - Add explicit (void) cast to result of unique_ptr::release()

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 13 23:03:51 PST 2016


Author: ericwf
Date: Mon Nov 14 01:03:50 2016
New Revision: 286796

URL: http://llvm.org/viewvc/llvm-project?rev=286796&view=rev
Log:
Add explicit (void) cast to result of unique_ptr::release()

Modified:
    cfe/trunk/tools/libclang/CIndex.cpp

Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=286796&r1=286795&r2=286796&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Mon Nov 14 01:03:50 2016
@@ -7761,7 +7761,7 @@ CXTUResourceUsage clang_getCXTUResourceU
   CXTUResourceUsage usage = { (void*) entries.get(),
                             (unsigned) entries->size(),
                             !entries->empty() ? &(*entries)[0] : nullptr };
-  entries.release();
+  (void)entries.release();
   return usage;
 }
 




More information about the cfe-commits mailing list