Changeset 19759


Ignore:
Timestamp:
10/11/19 16:48:06 (5 years ago)
Author:
tbretz
Message:
Not nice... but those billions of warnings from root are just too annoying.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19758 r19759  
    211211         -Wcast-align -Wformat -Woverloaded-virtual \
    212212         -Wnon-virtual-dtor -Wshadow -fPIC") # -Wextra
     213
     214# /opt/root-6.18.04-bin/include/Bytes.h:72:6: warning: cast from 'char *' to 'UShort_t *'
     215#       (aka 'unsigned short *') increases required alignment from 1 to 2 [-Wcast-align]
     216#    *((UShort_t *)buf) = Rbswap_16(x);
     217#      ^~~~~~~~~~~~~~~
     218
     219IF(ROOT_VERSION VERSION_GREATER_EQUAL 6.18 AND ROOT_VERSION VERSION_LESS 6.19)
     220   SET(CMAKE_CXX_FLAGS
     221       "${CMAKE_CXX_FLAGS} -Wno-cast-align")
     222ENDIF()
    213223
    214224SET(CMAKE_CXX_FLAGS
Note: See TracChangeset for help on using the changeset viewer.