mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 22:00:06 +00:00
add -Wno-strict-aliasing to compiler option.
This commit is contained in:
parent
bfbf51fda7
commit
8605c23ee1
@ -143,6 +143,13 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANGCC)
|
||||
# to spurriously set off this warning in both gccc and Clang
|
||||
list(APPEND OSD_COMPILER_FLAGS -Wno-invalid-offsetof)
|
||||
|
||||
# HBR uses unions as an optimization for its memory allocation.
|
||||
# Type casting between union members breaks strict aliasing rules from
|
||||
# gcc 4.4.1 versions onwards. We disable the warning but keep aliasing
|
||||
# optimization.
|
||||
list(APPEND OSD_COMPILER_FLAGS -Wno-strict-aliasing)
|
||||
|
||||
|
||||
# FAR and OSD have templated virtual function implementations that trigger
|
||||
# a lot of hidden virtual function overloads (some of them spurrious).
|
||||
# Disable those for now in Clang.
|
||||
|
Loading…
Reference in New Issue
Block a user