From 63367c8d19ae15015d898cf97a30c132968845e8 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 11 May 2025 21:39:24 +0200 Subject: [PATCH 1/2] Do not suppress 'unreferenced formal parameter' MSVC warning (C4100) --- cmake/configure.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/configure.cmake b/cmake/configure.cmake index 1984b16ac..f8ecf1dcc 100644 --- a/cmake/configure.cmake +++ b/cmake/configure.cmake @@ -73,7 +73,7 @@ if( MSVC ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_COMPILER_FLAGS}") endif() set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}") - set(COMMON_FLAGS "/W4 /wd4267 /wd4244 /wd4100") + set(COMMON_FLAGS "/W4 /wd4267 /wd4244") set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${COMMON_FLAGS}" ) set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${COMMON_FLAGS}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_FLAGS}" ) From 13ef1986889e1669ebc751fc7e5a35d425e154e8 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Mon, 12 May 2025 10:36:58 +0200 Subject: [PATCH 2/2] Fix C4100 warnings --- tasks/all/runner.cpp | 2 +- tasks/mpi/runner.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/all/runner.cpp b/tasks/all/runner.cpp index 5a92f5c6c..5ea930ad8 100644 --- a/tasks/all/runner.cpp +++ b/tasks/all/runner.cpp @@ -14,7 +14,7 @@ class UnreadMessagesDetector : public ::testing::EmptyTestEventListener { public: UnreadMessagesDetector() = default; - void OnTestEnd(const ::testing::TestInfo& test_info) override { + void OnTestEnd(const ::testing::TestInfo& /*test_info*/) override { int rank = -1; MPI_Comm_rank(MPI_COMM_WORLD, &rank); diff --git a/tasks/mpi/runner.cpp b/tasks/mpi/runner.cpp index ece86e7b8..9de8bed44 100644 --- a/tasks/mpi/runner.cpp +++ b/tasks/mpi/runner.cpp @@ -11,7 +11,7 @@ class UnreadMessagesDetector : public ::testing::EmptyTestEventListener { public: UnreadMessagesDetector() = default; - void OnTestEnd(const ::testing::TestInfo& test_info) override { + void OnTestEnd(const ::testing::TestInfo& /*test_info*/) override { int rank = -1; MPI_Comm_rank(MPI_COMM_WORLD, &rank);