mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Silence warnings about using long long
in C++03
We get these warnings because of the typedefs for 64-bit integers in PhysFS's header files. The compiler will treat them as extensions and will still compile it fine but it does mean we aren't strictly standards conforming. Which really isn't a problem anyway. Probably.
This commit is contained in:
parent
113fbb0fdb
commit
f2089c954f
1 changed files with 7 additions and 0 deletions
|
@ -275,6 +275,13 @@ if(MSVC)
|
||||||
target_compile_options(VVVVVV PRIVATE /wd4244)
|
target_compile_options(VVVVVV PRIVATE /wd4244)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Disable warnings about `long long` in C++03 (from including PhysFS)
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
|
target_compile_options(VVVVVV PRIVATE -Wno-long-long)
|
||||||
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
|
target_compile_options(VVVVVV PRIVATE -Wno-c++11-long-long)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# MSVC doesn't have /std:c99 or /std:c++98 switches!
|
# MSVC doesn't have /std:c99 or /std:c++98 switches!
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue