Skip to content

Commit

Permalink
Enable rgbds warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Apr 4, 2020
1 parent 95e48ef commit c4bb41d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ $(crystal_au_obj): RGBASMFLAGS = -D _CRYSTAL11 -D _CRYSTAL_AU
# It doesn't look like $(shell) can be deferred so there might not be a better way.
define DEP
$1: $2 $$(shell tools/scan_includes $2)
$$(RGBASM) $$(RGBASMFLAGS) -L -o $$@ $$<
$$(RGBASM) $$(RGBASMFLAGS) -L -Wall -Wextra -o $$@ $$<
endef

# Build tools when building the rom.
Expand Down
4 changes: 2 additions & 2 deletions engine/events/overworld.asm
Original file line number Diff line number Diff line change
Expand Up @@ -750,13 +750,13 @@ Script_AskWaterfall:
EscapeRopeFunction:
call FieldMoveJumptableReset
ld a, $1
jr dig_incave
jr EscapeRopeOrDig

DigFunction:
call FieldMoveJumptableReset
ld a, $2

dig_incave
EscapeRopeOrDig:
ld [wBuffer2], a
.loop
ld hl, .DigTable
Expand Down
6 changes: 3 additions & 3 deletions engine/gfx/color.asm
Original file line number Diff line number Diff line change
Expand Up @@ -241,21 +241,21 @@ LoadTrainerClassPaletteAsNthBGPal:
ld a, [wTrainerClass]
call GetTrainerPalettePointer
ld a, e
jr got_palette_pointer_8bd7
jr LoadNthMiddleBGPal

LoadMonPaletteAsNthBGPal:
ld a, [wCurPartySpecies]
call _GetMonPalettePointer
ld a, e
bit 7, a
jr z, got_palette_pointer_8bd7
jr z, LoadNthMiddleBGPal
and $7f
inc hl
inc hl
inc hl
inc hl

got_palette_pointer_8bd7
LoadNthMiddleBGPal:
push hl
ld hl, wBGPals1
ld de, 1 palettes
Expand Down
2 changes: 1 addition & 1 deletion engine/gfx/load_pics.asm
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ FixPicBank:
; This is a thing for some reason.

PICS_FIX EQU $36
GLOBAL PICS_FIX
EXPORT PICS_FIX

push hl
push bc
Expand Down
2 changes: 1 addition & 1 deletion engine/pokedex/pokedex.asm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
const DEXSTATE_EXIT

POKEDEX_SCX EQU 5
GLOBAL POKEDEX_SCX
EXPORT POKEDEX_SCX

Pokedex:
ldh a, [hWX]
Expand Down

0 comments on commit c4bb41d

Please sign in to comment.