Skip to content

Commit

Permalink
Add -Wall switch for cpp compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
metopa committed May 2, 2018
1 parent 3a3133c commit 144247d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions epi_judge_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(CMAKE_CXX_STANDARD 14)
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4018 -wd4800 -wd4805)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-unused-variable -Wno-sign-compare")
link_libraries(pthread)
endif()

Expand Down
2 changes: 1 addition & 1 deletion epi_judge_cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TEST_DATA_DIR := ../test_data
PROGRAM_ARGS := --test-data-dir $(TEST_DATA_DIR)

CXX_COMPILER := g++
CXX_FLAGS := -std=c++14 -pthread -Werror
CXX_FLAGS := -std=c++14 -pthread -Werror -Wno-unused-variable -Wno-sign-compare
CXX_FLAGS_DEBUG := $(CXX_FLAGS) -g -O0

LAST_MODIFIED_CXX_FILE = $(shell ls -rt $(SRC_DIR)/*\.cc | tail -1)
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp_solutions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(CMAKE_CXX_STANDARD 17)
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4018 -wd4800 -wd4805)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-unused-variable -Wno-sign-compare")
link_libraries(pthread)
endif()

Expand Down
2 changes: 1 addition & 1 deletion epi_judge_cpp_solutions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TEST_DATA_DIR := ../test_data
PROGRAM_ARGS := --test-data-dir $(TEST_DATA_DIR)

CXX_COMPILER := g++
CXX_FLAGS := -std=c++17 -pthread -Werror
CXX_FLAGS := -std=c++17 -pthread -Werror -Wno-unused-variable -Wno-sign-compare
CXX_FLAGS_DEBUG := $(CXX_FLAGS) -g -O0

LAST_MODIFIED_CXX_FILE = $(shell ls -rt $(SRC_DIR)/*\.cc | tail -1)
Expand Down

0 comments on commit 144247d

Please sign in to comment.