diff options
author | Chris Robinson <[email protected]> | 2019-09-14 12:50:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-14 12:50:44 -0700 |
commit | 4e8caea97e7164b53fca31802cad7e1160930ae5 (patch) | |
tree | 6c65d492c0ca1150efc5a9ef9da653555c288057 | |
parent | 532197a650729be5e4405fd64f81e4443090a01e (diff) |
Enable -Wconversion warnings
This is now clean with Clang 7, let's see what other compilers give.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4effb94a..3ec17ce5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,7 +220,7 @@ IF(MSVC) ENDFOREACH(flag_var) ENDIF() ELSE() - SET(C_FLAGS ${C_FLAGS} -Winline -Wall $<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast>) + SET(C_FLAGS ${C_FLAGS} -Winline -Wall $<$<COMPILE_LANGUAGE:CXX>:-Wold-style-cast> -Wconversion) CHECK_C_COMPILER_FLAG(-Wextra HAVE_W_EXTRA) IF(HAVE_W_EXTRA) SET(C_FLAGS ${C_FLAGS} -Wextra) |