Skip to content

Fix remaining compiler warnings, drop unused code - #10

Merged
su8 merged 1 commit into
su8:mainfrom
lasers:cleanup/warnings
Oct 22, 2026
Merged

su8 merged 1 commit into
su8:mainfrom
lasers:cleanup/warnings

Conversation

@lasers

@lasers lasers commented Oct 22, 2026

Copy link
Copy Markdown
Contributor
  • Cast the map sizes in displayMap() to int, fixing the two -Wsign-compare warnings.
  • Remove the unused GETSTR macro and the unused Hero::potions field.

No behaviour change. Builds with the Makefile flags; the only warnings left are the -Wstrict-overflow optimizer notes.

Cast map sizes in displayMap() to silence -Wsign-compare, and remove
the unused GETSTR macro and Hero::potions field.
@su8
su8 merged commit 4038c40 into su8:main Oct 22, 2026
3 checks passed
@su8

su8 commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Hi @lasers,

Thank you so much mate.

Cheers

@lasers
lasers deleted the cleanup/warnings branch October 23, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants