mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-27 06:35:32 +00:00
Add -Wpedantic to makefile
This commit is contained in:
parent
c9a9845a65
commit
d4cb445cc1
4
Makefile
4
Makefile
@ -9,8 +9,8 @@ IINC := -I include
|
||||
CSTD := -std=c11
|
||||
CFLAGS :=
|
||||
LDFLAGS :=
|
||||
WARNINGS := -Wall -Wextra
|
||||
# WARNINGS := -Wall -Wextra -Wpedantic -Wpadded # binary constants :s
|
||||
WARNINGS := -Wall -Wextra -Wpedantic
|
||||
# WARNINGS := -Wall -Wextra -Wpedantic -Wpadded
|
||||
WARNINGS += -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=vla -Werror=switch -Werror=implicit-fallthrough -Werror=unused-function -Werror=unused-parameter -Werror=shadow
|
||||
|
||||
ifeq ($(CC),gcc)
|
||||
|
@ -18,7 +18,6 @@ typedef enum RabbitizerInstrId {
|
||||
#include "instructions/instr_id/RabbitizerInstrId_cpu.inc"
|
||||
|
||||
#include "instructions/instr_id/RabbitizerInstrId_rsp.inc"
|
||||
RABBITIZER_DEF_INSTR_ID(rsp, , MAX, )
|
||||
|
||||
RABBITIZER_INSTR_ID_ALL_MAX = RABBITIZER_DEF_INSTR_ID(rsp, , MAX, )
|
||||
} RabbitizerInstrId;
|
||||
|
@ -16,4 +16,4 @@ RABBITIZER_DEF_INSTR_ID(cpu, , INVALID, .operands={RABBITIZER_OPERAND_TYPE_rs, R
|
||||
#include "instructions/instr_id/cpu/cpu_cop1_fpu_w.inc"
|
||||
#include "instructions/instr_id/cpu/cpu_cop1_fpu_l.inc"
|
||||
|
||||
RABBITIZER_DEF_INSTR_ID(cpu, , MAX, )
|
||||
RABBITIZER_DEF_INSTR_ID(cpu, , MAX, 0)
|
||||
|
@ -16,3 +16,5 @@ RABBITIZER_DEF_INSTR_ID(rsp, , INVALID, .operands={RABBITIZER_OPER
|
||||
#include "instructions/instr_id/rsp/rsp_special.inc"
|
||||
#include "instructions/instr_id/rsp/rsp_regimm.inc"
|
||||
#include "instructions/instr_id/rsp/rsp_cop0.inc"
|
||||
|
||||
RABBITIZER_DEF_INSTR_ID(rsp, , MAX, 0)
|
||||
|
@ -12,7 +12,6 @@ RabbitizerEnumMetadata rabbitizer_enum_InstrId_enumvalues[] = {
|
||||
#include "instructions/instr_id/RabbitizerInstrId_cpu.inc"
|
||||
|
||||
#include "instructions/instr_id/RabbitizerInstrId_rsp.inc"
|
||||
RABBITIZER_DEF_INSTR_ID(rsp, , MAX, )
|
||||
|
||||
RABBITIZER_DEF_INSTR_ID(ALL, , MAX, )
|
||||
{ 0 },
|
||||
|
Loading…
x
Reference in New Issue
Block a user