Squelch warnings, turn on -Werror
Jeffrey Pfau jeffrey@endrift.com
Wed, 24 Apr 2013 01:24:48 -0700
3 files changed,
5 insertions(+),
1 deletions(-)
M
CMakeLists.txt
→
CMakeLists.txt
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 2.6) project(GBAc) -set(CMAKE_C_FLAGS_DEBUG "-g -Wall -Wextra") +set(CMAKE_C_FLAGS_DEBUG "-g -Wall -Wextra -Wno-unused -Werror") +set(CMAKE_C_FLAGS_RELEASE "-O3 -Wall -Wextra -Wno-unused -Werror") file(GLOB ARM_SRC ${CMAKE_SOURCE_DIR}/src/arm/*.c) file(GLOB GBA_SRC ${CMAKE_SOURCE_DIR}/src/gba/*.c) file(GLOB RENDERER_SRC ${CMAKE_SOURCE_DIR}/src/gba/renderers/*.c)
M
src/gba/gba.c
→
src/gba/gba.c
@@ -351,6 +351,7 @@ return GBAWaitForIRQ(gba);
} void GBALog(int level, const char* format, ...) { + (void)(level); va_list args; va_start(args, format); vprintf(format, args);
M
src/main.c
→
src/main.c
@@ -37,6 +37,8 @@ 0, 1
}; int main(int argc, char** argv) { + (void)(argc); + (void)(argv); int fd = open("test.rom", O_RDONLY); sigset_t signals;