Revert "CMake: make unsequenced modifications an error"

This reverts commit 23c1c0bdb2.

Because add_if_flag_compiles apparently allows unsequenced
even if the compiler doesn't support it..
This commit is contained in:
Ahmad Fatoum 2019-05-04 23:56:38 +02:00
parent 23c1c0bdb2
commit 3e0e91013f
No known key found for this signature in database
GPG Key ID: C3EAC3DE9321D59B

View File

@ -19,7 +19,6 @@ endif()
include(AddIfFlagCompiles)
add_if_flag_compiles(-Werror=pointer-arith CMAKE_C_FLAGS)
add_if_flag_compiles(-Werror=implicit-function-declaration CMAKE_C_FLAGS)
add_if_flag_compiles(-Werror=unsequenced CMAKE_C_FLAGS)
# src/external/jar_xm.h does shady stuff
add_if_flag_compiles(-fno-strict-aliasing CMAKE_C_FLAGS)