From 01c0397680231ece5b25dba560cf375f6b02477f Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 11 Mar 2021 20:27:15 -0600 Subject: [PATCH] [ox/std] Suppress warning about empyt variadic macro arguments for Clang --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 130a79b5..a042b731 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,9 @@ if(NOT MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-variable") + # disable warnings + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-zero-variadic-macro-arguments") + if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA") include(GBA) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib")