Skip to content

Commit 14a23d8

Browse files
committed
[llvm][unittests] Silence warning when building with MSVC
Fixes: ``` [836/1441] Building CXX object unittests\ExecutionEngine\Orc\CMakeFiles\OrcJITTests.dir\CallableTraitsHelperTest.cpp.obj C:\git\llvm-project\llvm\unittests\ExecutionEngine\Orc\CallableTraitsHelperTest.cpp(25): warning C4551: function call missing argument list C:\git\llvm-project\llvm\unittests\ExecutionEngine\Orc\CallableTraitsHelperTest.cpp(34): warning C4551: function call missing argument list ```
1 parent c79fbcd commit 14a23d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/ExecutionEngine/Orc/CallableTraitsHelperTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ using namespace llvm::orc;
2222
static void freeVoidVoid() {}
2323

2424
TEST(CallableTraitsHelperTest, FreeVoidVoid) {
25-
(void)freeVoidVoid;
25+
freeVoidVoid();
2626
typedef CallableArgInfo<decltype(freeVoidVoid)> CAI;
2727
static_assert(std::is_void_v<CAI::ReturnType>);
2828
static_assert(std::is_same_v<CAI::ArgsTupleType, std::tuple<>>);
@@ -31,7 +31,7 @@ TEST(CallableTraitsHelperTest, FreeVoidVoid) {
3131
static int freeBinaryOp(int, float) { return 0; }
3232

3333
TEST(CallableTraitsHelperTest, FreeBinaryOp) {
34-
(void)freeBinaryOp;
34+
freeBinaryOp(1, 2.0f);
3535
typedef CallableArgInfo<decltype(freeBinaryOp)> CAI;
3636
static_assert(std::is_same_v<CAI::ReturnType, int>);
3737
static_assert(std::is_same_v<CAI::ArgsTupleType, std::tuple<int, float>>);

0 commit comments

Comments
 (0)