all repos — mgba @ 5122a236e0cb6ed73a274584b94d0639bf0157f3

mGBA Game Boy Advance Emulator

Squelch warnings, turn on -Werror
Jeffrey Pfau jeffrey@endrift.com
Wed, 24 Apr 2013 01:24:48 -0700
commit

5122a236e0cb6ed73a274584b94d0639bf0157f3

parent

1c0af229904f1d01841a71240bb834ee02cbb235

3 files changed, 5 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.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.csrc/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.csrc/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;