Skip to content

Commit 3d3a574

Browse files
committed
Relax compilation warnings for Basics concept
Ignore unused parameters during compilation (#604)
1 parent dff7920 commit 3d3a574

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exercises/concept/lasagna/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ set(CMAKE_BUILD_TYPE Debug)
4545

4646
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
4747
set_target_properties(${exercise} PROPERTIES
48-
COMPILE_FLAGS "-Wall -Wextra -Wpedantic -Werror"
48+
# added "-Wno-unused-parameter" to remove compiler warnings
49+
# should make it easier for students to run their first real code
50+
COMPILE_FLAGS "-Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter"
4951
)
5052
endif()
5153

0 commit comments

Comments
 (0)