diff options
| author | Ahmad Fatoum <[email protected]> | 2019-05-04 23:10:17 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2019-05-04 23:20:29 +0200 |
| commit | 23c1c0bdb270181c9e176cc67d64d0d03cced356 (patch) | |
| tree | b18043cc5e2a860ddccdde7b1acec1fc31de31d6 /CMakeLists.txt | |
| parent | 43bfb979e5b61df66e5aa42f620c9e2e4d492391 (diff) | |
| download | raylib-23c1c0bdb270181c9e176cc67d64d0d03cced356.tar.gz raylib-23c1c0bdb270181c9e176cc67d64d0d03cced356.zip | |
CMake: make unsequenced modifications an error
They not only result in discrepancies between different compiler,
but trigger undefined behavior. Avoid them by having them break
the CMake build and CI.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index be74c4da..9bfb44bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ 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) |
