[PATCH] D19701: [libcxx] [test] Remove more names of unreferenced parameters.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 17:14:31 PDT 2016


STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.

[libcxx] [test] Remove more names of unreferenced parameters.

Fixes MSVC "warning C4100: unreferenced formal parameter".

http://reviews.llvm.org/D19701

Files:
  test/std/input.output/iostreams.base/ios/basic.ios.members/move.pass.cpp
  test/std/input.output/iostreams.base/ios/basic.ios.members/swap.pass.cpp

Index: test/std/input.output/iostreams.base/ios/basic.ios.members/swap.pass.cpp
===================================================================
--- test/std/input.output/iostreams.base/ios/basic.ios.members/swap.pass.cpp
+++ test/std/input.output/iostreams.base/ios/basic.ios.members/swap.pass.cpp
@@ -41,31 +41,31 @@
 bool g2_called = false;
 bool g3_called = false;
 
-void f1(std::ios_base::event ev, std::ios_base& stream, int index)
+void f1(std::ios_base::event, std::ios_base&, int index)
 {
     assert(index == 4);
     f1_called = true;
 }
 
-void f2(std::ios_base::event ev, std::ios_base& stream, int index)
+void f2(std::ios_base::event, std::ios_base&, int index)
 {
     assert(index == 5);
     f2_called = true;
 }
 
-void g1(std::ios_base::event ev, std::ios_base& stream, int index)
+void g1(std::ios_base::event, std::ios_base&, int index)
 {
     assert(index == 7);
     g1_called = true;
 }
 
-void g2(std::ios_base::event ev, std::ios_base& stream, int index)
+void g2(std::ios_base::event, std::ios_base&, int index)
 {
     assert(index == 8);
     g2_called = true;
 }
 
-void g3(std::ios_base::event ev, std::ios_base& stream, int index)
+void g3(std::ios_base::event, std::ios_base&, int index)
 {
     assert(index == 9);
     g3_called = true;
Index: test/std/input.output/iostreams.base/ios/basic.ios.members/move.pass.cpp
===================================================================
--- test/std/input.output/iostreams.base/ios/basic.ios.members/move.pass.cpp
+++ test/std/input.output/iostreams.base/ios/basic.ios.members/move.pass.cpp
@@ -41,35 +41,35 @@
 bool g2_called = false;
 bool g3_called = false;
 
-void f1(std::ios_base::event ev, std::ios_base& stream, int index)
+void f1(std::ios_base::event, std::ios_base&, int)
 {
     f1_called = true;
 }
 
-void f2(std::ios_base::event ev, std::ios_base& stream, int index)
+void f2(std::ios_base::event, std::ios_base&, int)
 {
     f2_called = true;
 }
 
-void g1(std::ios_base::event ev, std::ios_base& stream, int index)
+void g1(std::ios_base::event ev, std::ios_base&, int index)
 {
     if (ev == std::ios_base::imbue_event)
     {
         assert(index == 7);
         g1_called = true;
     }
 }
 
-void g2(std::ios_base::event ev, std::ios_base& stream, int index)
+void g2(std::ios_base::event ev, std::ios_base&, int index)
 {
     if (ev == std::ios_base::imbue_event)
     {
         assert(index == 8);
         g2_called = true;
     }
 }
 
-void g3(std::ios_base::event ev, std::ios_base& stream, int index)
+void g3(std::ios_base::event ev, std::ios_base&, int index)
 {
     if (ev == std::ios_base::imbue_event)
     {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19701.55511.patch
Type: text/x-patch
Size: 2637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160429/d2e637a0/attachment.bin>


More information about the cfe-commits mailing list