mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Disable strict aliasing
Strict aliasing allows to compiler to make some optimisations, but they aren't without risk. The benefits do not appear to be worth the risk.
This commit is contained in:
parent
8699e35c09
commit
f9ded59361
@ -173,8 +173,8 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# set compiler flags - more are tested and added later
|
# set compiler flags - more are tested and added later
|
||||||
set(EXTRA_C_FLAGS "-std=c99 -Wall -Wextra -Wshadow -Wcast-qual")
|
set(EXTRA_C_FLAGS "-std=c99 -Wall -Wextra -Wshadow -Wcast-qual -fno-strict-aliasing")
|
||||||
set(EXTRA_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wno-shadow -Wswitch -Wreturn-type -Wcast-qual -Wno-deprecated -Wnon-virtual-dtor")
|
set(EXTRA_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wno-shadow -Wswitch -Wreturn-type -Wcast-qual -Wno-deprecated -Wnon-virtual-dtor -fno-strict-aliasing")
|
||||||
if (NOT RELEASE_BUILD)
|
if (NOT RELEASE_BUILD)
|
||||||
# -Werror is most useful during development, don't potentially break
|
# -Werror is most useful during development, don't potentially break
|
||||||
# release builds
|
# release builds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user