From: Holger Schemel Date: Mon, 10 Feb 2025 17:56:43 +0000 (+0100) Subject: fixed compiler warnings with GCC 11 X-Git-Tag: 4.4.0.4~5 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a0341ec76bcb48015b3b96197805c5988c53cb04;p=rocksndiamonds.git fixed compiler warnings with GCC 11 --- diff --git a/src/game_bd/bd_cave.h b/src/game_bd/bd_cave.h index 3034f524..c3b38d0d 100644 --- a/src/game_bd/bd_cave.h +++ b/src/game_bd/bd_cave.h @@ -739,7 +739,7 @@ void gd_drawcave_game(const GdCave *cave, boolean bonus_life_flash, int animcycle, boolean hate_invisible_outbox); // function to copy a GdString -static inline char *gd_strcpy(GdString dest, const GdString src) +static inline char *gd_strcpy(GdString dest, const char *src) { return strncpy(dest, src, sizeof(GdString)); }