Wii: Silence warnings

This commit is contained in:
Jeffrey Pfau 2015-09-20 22:19:22 -07:00
parent 320033e724
commit 2dbaf2edd6
1 changed files with 5 additions and 1 deletions

View File

@ -183,10 +183,14 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm.*")
enable_language(ASM)
endif()
if(PSP2)
if(PSP2 OR WII)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format")
endif()
if(WII)
add_definitions(-U__STRICT_ANSI__)
endif()
include(CheckFunctionExists)
check_function_exists(strdup HAVE_STRDUP)
check_function_exists(strndup HAVE_STRNDUP)