Squelch warnings, turn on -Werror

This commit is contained in:
Jeffrey Pfau 2013-04-24 01:24:48 -07:00
parent 1c0af22990
commit 5122a236e0
3 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -351,6 +351,7 @@ int GBAHalt(struct GBA* gba) {
}
void GBALog(int level, const char* format, ...) {
(void)(level);
va_list args;
va_start(args, format);
vprintf(format, args);

View File

@ -37,6 +37,8 @@ static const GLint _glTexCoords[] = {
};
int main(int argc, char** argv) {
(void)(argc);
(void)(argv);
int fd = open("test.rom", O_RDONLY);
sigset_t signals;