Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Made -Wno-extended-offsetof a warning for apple only
Browse files Browse the repository at this point in the history
  • Loading branch information
rnistuk committed Sep 7, 2018
1 parent 3c4e9b1 commit 1871f64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ if (APPLE)
add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
endif(APPLE)

set(warnings "-Wno-deprecated-declarations -Wall -Wextra -Werror -Wpedantic -Wno-extended-offsetof")
set(warnings "-Wno-deprecated-declarations -Wall -Wextra -Werror -Wpedantic")
if (APPLE)
set(warnings "${warnings} -Wno-extended-offsetof")
endif(APPLE)

set(CMAKE_CXX_FLAGS ${warnings})
set(CMAKE_C_FLAGS ${warnings})

Expand Down

0 comments on commit 1871f64

Please sign in to comment.