mirror of
https://github.com/HackerN64/HackerOoT.git
synced 2026-01-21 10:37:37 -08:00
Promote the warnings implicit-function-declaration, incompatible-pointer-types, int-conversion to errors (#144)
This commit is contained in:
1
Makefile
1
Makefile
@@ -210,6 +210,7 @@ INC := -Iinclude -Iinclude/libc -Isrc -I$(BUILD_DIR) -I. -I$(EXTRACTED_DIR)
|
||||
|
||||
# Check code syntax with host compiler
|
||||
CHECK_WARNINGS := -Wall -Wextra -Wno-format-security -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-variable -Wno-missing-braces
|
||||
CHECK_WARNINGS += -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion
|
||||
|
||||
# The `cpp` command behaves differently on macOS (it behaves as if
|
||||
# `-traditional-cpp` was passed) so we use `gcc -E` instead.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define COMPRESSION_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "z64dma.h"
|
||||
|
||||
void* Yaz0_FirstDMA(void);
|
||||
void* Yaz0_NextDMA(u8* curSrcPos);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "z64.h"
|
||||
#include "functions.h"
|
||||
|
||||
#if IS_DEBUG
|
||||
void Math3D_VtxF2L(Vtx* r, Vec3f* v) {
|
||||
|
||||
Reference in New Issue
Block a user