Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

missing-prototypes #312

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-Wno-multichar -Wno-sign-compare)
endif ()
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
add_compile_options(-Wall -Werror -Wmissing-prototypes)
NaruFGT marked this conversation as resolved.
Show resolved Hide resolved
else ()
message(WARNING "Compiler not supported to enable warnings.")
endif ()
Expand Down