[libcxx-commits] [libcxx] 470eb62 - [libc++][test] Silence "unused variable" warning

Casey Carter via libcxx-commits libcxx-commits at lists.llvm.org
Sat Apr 11 11:44:26 PDT 2020


Author: Casey Carter
Date: 2020-04-11T11:40:16-07:00
New Revision: 470eb62d7bcd57fa59bc29e8d662b1c24d84fbc4

URL: https://github.com/llvm/llvm-project/commit/470eb62d7bcd57fa59bc29e8d662b1c24d84fbc4
DIFF: https://github.com/llvm/llvm-project/commit/470eb62d7bcd57fa59bc29e8d662b1c24d84fbc4.diff

LOG: [libc++][test] Silence "unused variable" warning

Added: 
    

Modified: 
    libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_const_Types.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_const_Types.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_const_Types.pass.cpp
index 376308f07e2c..e523aa3b187c 100644
--- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_const_Types.pass.cpp
+++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc_const_Types.pass.cpp
@@ -45,7 +45,7 @@ int main(int, char**)
 {
     {
         // check that the literal '0' can implicitly initialize a stored pointer.
-        std::tuple<int*> t = {std::allocator_arg, std::allocator<int>{}, 0};
+        std::tuple<int*>{std::allocator_arg, std::allocator<int>{}, 0};
     }
     {
         std::tuple<int> t(std::allocator_arg, A1<int>(), 3);


        


More information about the libcxx-commits mailing list