Browse Source

Do not show attribute warnings for Amiga builds

The compiler is currently stock at GCC 6.5 which doesn't know about some of the attributes we use.
pull/2014/head
Anders Jenbo 5 years ago
parent
commit
86971d53d6
  1. 4
      CMake/amiga_defs.cmake

4
CMake/amiga_defs.cmake

@ -8,3 +8,7 @@ set(TTF_FONT_NAME \"LiberationSerif-Bold.ttf\")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions")
find_package(Freetype REQUIRED)
find_package(ZLIB REQUIRED)
# Do not warn about unknown attributes, such as [[nodiscard]].
# As this build uses an older compiler, there are lots of them.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes")

Loading…
Cancel
Save