diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-26 12:20:52 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-26 12:27:04 +0300 |
commit | 27787549256410b6b2de1eca47a2719830af7f96 (patch) | |
tree | 23f3209a056b3d04365096ba7095201f601a6edd /extern/glew | |
parent | fd52dc58ddea642b7162b01538c0c6c48abb0507 (diff) |
Cleanp: fix compiler warnings
Diffstat (limited to 'extern/glew')
-rw-r--r-- | extern/glew/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extern/glew/CMakeLists.txt b/extern/glew/CMakeLists.txt index e0773d828ec..18ca88e6fec 100644 --- a/extern/glew/CMakeLists.txt +++ b/extern/glew/CMakeLists.txt @@ -18,6 +18,13 @@ # All rights reserved. # ***** END GPL LICENSE BLOCK ***** +# avoid noisy warnings +if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") + add_c_flag( + "-Wno-strict-prototypes" + ) +endif() + set(INC include ) |