Skip to content

Commit

Permalink
Fix builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jan 29, 2019
1 parent 7c5fc93 commit ae51d04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/XRootDOSDefs.cmake
Expand Up @@ -51,8 +51,13 @@ if( CMAKE_COMPILER_IS_GNUCXX )
# gcc 6.0 is more pedantic
if( GCC_VERSION VERSION_GREATER 6.0 OR GCC_VERSION VERSION_EQUAL 6.0 )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=misleading-indentation" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=address-of-packed-member" )
endif()

# gcc 9.0 is even more pedantic
if( GCC_VERSION VERSION_GREATER 9.0 OR GCC_VERSION VERSION_EQUAL 9.0 )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=address-of-packed-member" )
endif()

endif()

#-------------------------------------------------------------------------------
Expand Down

0 comments on commit ae51d04

Please sign in to comment.