Skip to content

Commit

Permalink
CMakeLists.txt: address-of-packed-member is clang-4.0+ warning
Browse files Browse the repository at this point in the history
(cherry picked from commit 76f87c2)
  • Loading branch information
LebedevRI committed Sep 3, 2016
1 parent 6feaff3 commit 82ae82c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,12 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=varargs")

# clang-4.0 bug https://llvm.org/bugs/show_bug.cgi?id=28115#c7
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=address-of-packed-member")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=address-of-packed-member")
if(NOT CMAKE_C_COMPILER_VERSION LESS 4.0)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=address-of-packed-member")
endif()
if(NOT CMAKE_CXX_COMPILER_VERSION LESS 4.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=address-of-packed-member")
endif()
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
endif()

Expand Down

0 comments on commit 82ae82c

Please sign in to comment.