mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -275,6 +275,13 @@ if(MSVC)
|
||||
target_compile_options(VVVVVV PRIVATE /wd4244)
|
||||
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)
|
||||
# MSVC doesn't have /std:c99 or /std:c++98 switches!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user