[libcxx] r337016 - Fix a couple of 'unused variable' warnings in a vector test. NFC.

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 13 09:26:16 PDT 2018


Author: marshall
Date: Fri Jul 13 09:26:16 2018
New Revision: 337016

URL: http://llvm.org/viewvc/llvm-project?rev=337016&view=rev
Log:
Fix a couple of 'unused variable' warnings in a vector test. NFC.


Modified:
    libcxx/trunk/test/std/containers/sequences/vector/iterators.pass.cpp

Modified: libcxx/trunk/test/std/containers/sequences/vector/iterators.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/vector/iterators.pass.cpp?rev=337016&r1=337015&r2=337016&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/vector/iterators.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/vector/iterators.pass.cpp Fri Jul 13 09:26:16 2018
@@ -77,6 +77,8 @@ int main()
         typedef std::vector<T> C;
         C::iterator i;
         C::const_iterator j;
+        (void) i;
+        (void) j;
     }
 #if TEST_STD_VER >= 11
     {
@@ -125,6 +127,8 @@ int main()
         typedef std::vector<T, min_allocator<T>> C;
         C::iterator i;
         C::const_iterator j;
+        (void) i;
+        (void) j;
     }
     {
         typedef A T;




More information about the cfe-commits mailing list