From 0233176c2bf3c560162948ef0b3b4d2306b3a788 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 20 Oct 2022 13:34:33 +0000 Subject: [PATCH] fixed compiler warnings with GCC 11 --- src/engines.h | 2 +- src/game_em/export.h | 2 +- src/game_sp/export.h | 2 +- src/tape.h | 4 ++-- src/tools.h | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/engines.h b/src/engines.h index 4e09b72a..fd9a12fe 100644 --- a/src/engines.h +++ b/src/engines.h @@ -36,7 +36,7 @@ int getScreenFieldSizeY(void); void PlayLevelSound_EM(int, int, int, int); void InitGraphicInfo_EM(void); -boolean CheckSingleStepMode_EM(byte action[], int, boolean, boolean, boolean); +boolean CheckSingleStepMode_EM(byte[MAX_PLAYERS], int, boolean, boolean, boolean); void SetGfxAnimation_EM(struct GraphicInfo_EM *, int, int, int, int); void getGraphicSourceObjectExt_EM(struct GraphicInfo_EM *, int, int, int, int); diff --git a/src/game_em/export.h b/src/game_em/export.h index c5373fdb..bb700894 100644 --- a/src/game_em/export.h +++ b/src/game_em/export.h @@ -108,7 +108,7 @@ void em_close_all(void); void InitGfxBuffers_EM(void); void InitGameEngine_EM(void); -void GameActions_EM(byte *, boolean); +void GameActions_EM(byte[MAX_PLAYERS], boolean); unsigned int InitEngineRandom_EM(int); diff --git a/src/game_sp/export.h b/src/game_sp/export.h index d8b964fd..0ba8ac7d 100644 --- a/src/game_sp/export.h +++ b/src/game_sp/export.h @@ -172,7 +172,7 @@ void InitPrecedingPlayfieldMemory(void); void InitGfxBuffers_SP(void); void InitGameEngine_SP(void); -void GameActions_SP(byte *, boolean); +void GameActions_SP(byte[MAX_PLAYERS], boolean); unsigned int InitEngineRandom_SP(int); diff --git a/src/tape.h b/src/tape.h index c4fba44d..d78c4b8f 100644 --- a/src/tape.h +++ b/src/tape.h @@ -257,8 +257,8 @@ void TapeSetDateFromNow(void); void TapeStartRecording(int); void TapeHaltRecording(void); void TapeStopRecording(void); -boolean TapeAddAction(byte *); -void TapeRecordAction(byte *); +boolean TapeAddAction(byte[MAX_TAPE_ACTIONS]); +void TapeRecordAction(byte[MAX_TAPE_ACTIONS]); void TapeTogglePause(boolean); void TapeStartPlaying(void); void TapeStopPlaying(void); diff --git a/src/tools.h b/src/tools.h index eddddc0e..395e73b9 100644 --- a/src/tools.h +++ b/src/tools.h @@ -127,8 +127,8 @@ void RedrawGlobalBorder(void); void MarkTileDirty(int, int); void SetBorderElement(void); -void FloodFillLevel(int, int, int, short[][MAX_LEV_FIELDY], int, int); -void FloodFillLevelExt(int, int, int, int, int y, short field[][y], int, int); +void FloodFillLevel(int, int, int, short[MAX_LEV_FIELDX][MAX_LEV_FIELDY], int, int); +void FloodFillLevelExt(int, int, int, int x, int y, short field[x][y], int, int); void SetRandomAnimationValue(int, int); int getGraphicAnimationFrame(int, int); -- 2.34.1