mirror of https://github.com/mgba-emu/mgba.git
Squelch warnings, turn on -Werror
This commit is contained in:
parent
1c0af22990
commit
5122a236e0
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue