From b4fd074c913bcaf844ecae8620e2ccfb7c8f035c Mon Sep 17 00:00:00 2001 From: vaeng <34183939+vaeng@users.noreply.github.com> Date: Tue, 2 May 2023 13:01:57 +0200 Subject: [PATCH] Ignore unused parameters during compilation --- exercises/concept/lasagna/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/concept/lasagna/CMakeLists.txt b/exercises/concept/lasagna/CMakeLists.txt index 57f0e813..b79c51e6 100644 --- a/exercises/concept/lasagna/CMakeLists.txt +++ b/exercises/concept/lasagna/CMakeLists.txt @@ -45,7 +45,9 @@ set(CMAKE_BUILD_TYPE Debug) if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)") set_target_properties(${exercise} PROPERTIES - COMPILE_FLAGS "-Wall -Wextra -Wpedantic -Werror" + # added "-Wno-unused-parameter" to remove compiler warnings + # should make it easier for students to run their first real code + COMPILE_FLAGS "-Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter" ) endif()