Commit 850220d1 authored by Alexander Barkov's avatar Alexander Barkov

Disable only *some* warning types instead of *all* types.

We need to fix and enable all warnings gradually.

modified:
  storage/connect/CMakeLists.txt
parent f8f79d93
......@@ -42,8 +42,21 @@ IF(UNIX)
add_definitions(-Wall -Wfatal-errors -Wextra -Wmissing-declarations)
message(STATUS "CONNECT: GCC: All warnings enabled")
else()
add_definitions(--no-warnings)
message(STATUS "CONNECT: GCC: All warnings disabled")
add_definitions(-Wall -Wfatal-errors -Wmissing-declarations)
add_definitions(-Wno-write-strings)
add_definitions(-Wno-unused-variable)
add_definitions(-Wno-unused-but-set-variable)
add_definitions(-Wno-unused-value)
add_definitions(-Wno-unused-function)
add_definitions(-Wno-unused-label)
add_definitions(-Wno-parentheses)
add_definitions(-Wno-missing-declarations)
add_definitions(-Wno-implicit-function-declaration)
add_definitions(-Wno-int-to-pointer-cast)
add_definitions(-Wno-narrowing)
add_definitions(-Wno-reorder)
add_definitions(-Wno-delete-non-virtual-dtor)
message(STATUS "CONNECT: GCC: Some warnings disabled")
endif(WITH_WARNINGS)
add_definitions( -DUNIX -DLINUX -DUBUNTU )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment