Skip to content

load_abc.cpp (ReadABC): fix -Waddress warning from gcc14#98

Open
sezero wants to merge 1 commit intoKonstanty:masterfrom
sezero:Waddress
Open

load_abc.cpp (ReadABC): fix -Waddress warning from gcc14#98
sezero wants to merge 1 commit intoKonstanty:masterfrom
sezero:Waddress

Conversation

@sezero
Copy link
Contributor

@sezero sezero commented Nov 23, 2024

load_abc.cpp: In member function 'BOOL CSoundFile::ReadABC(const uint8_t*, DWORD)':
load_abc.cpp:3958:55: warning: comparing the result of pointer addition '(pm + 2)' and NULL [-Waddress]
 3958 |                                                 if (pm+2)
      |                                                     ~~^~

load_abc.cpp: In member function 'BOOL CSoundFile::ReadABC(const uint8_t*, DWORD)':
load_abc.cpp:3958:55: warning: comparing the result of pointer addition '(pm + 2)' and NULL [-Waddress]
 3958 |                                                 if (pm+2)
      |                                                     ~~^~
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.

1 participant