[libcxx] r332567 - Add void casts to suppress nodiscard on linear_congruential_engine.
Billy Robert O'Neal III via cfe-commits
cfe-commits at lists.llvm.org
Wed May 16 19:58:26 PDT 2018
Author: bion
Date: Wed May 16 19:58:26 2018
New Revision: 332567
URL: http://llvm.org/viewvc/llvm-project?rev=332567&view=rev
Log:
Add void casts to suppress nodiscard on linear_congruential_engine.
Modified:
libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
Modified: libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp?rev=332567&r1=332566&r2=332567&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp Wed May 16 19:58:26 2018
@@ -25,7 +25,7 @@ test1()
E e1;
E e2;
assert(e1 == e2);
- e1();
+ (void)e1();
e2 = e1;
assert(e1 == e2);
}
Modified: libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp?rev=332567&r1=332566&r2=332567&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp Wed May 16 19:58:26 2018
@@ -25,8 +25,8 @@ test1()
E e1;
E e2 = e1;
assert(e1 == e2);
- e1();
- e2();
+ (void)e1();
+ (void)e2();
assert(e1 == e2);
}
More information about the cfe-commits
mailing list