Add -Wpedantic to makefile

This commit is contained in:
Angie 2022-08-23 15:12:55 -04:00
parent c9a9845a65
commit d4cb445cc1
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -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 },