From 986a86af13b4746a197976041a82d7429f4a1a84 Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Sun, 21 Aug 2016 13:19:54 +0200 Subject: [PATCH] took care of warnings from newer GCCs Signed-off-by: Christian Kroll --- scripts/lxdialog/Makefile | 2 +- scripts/lxdialog/lxdialog.c | 2 +- src/games/kart/kart.c | 5 +++-- src/scrolltext/scrolltext3.c | 11 ++++++++--- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile index 2be1e9d..82a3a0a 100644 --- a/scripts/lxdialog/Makefile +++ b/scripts/lxdialog/Makefile @@ -32,7 +32,7 @@ lxdialog: $(OBJS) $(HOSTCC) $(HOSTCFLAGS) -o lxdialog $(OBJS) $(LIBS) ncurses: - @echo "main() {}" > lxtemp.c + @echo "int main() {return 0;}" > lxtemp.c @if $(HOSTCC) $(HOSTCFLAGS) -lncurses lxtemp.c ; then \ rm -f lxtemp.c a.out; \ else \ diff --git a/scripts/lxdialog/lxdialog.c b/scripts/lxdialog/lxdialog.c index 6f4c1fd..c8d5286 100644 --- a/scripts/lxdialog/lxdialog.c +++ b/scripts/lxdialog/lxdialog.c @@ -208,7 +208,7 @@ j_inputbox (const char *t, int ac, const char * const * av) int ret = dialog_inputbox (t, av[2], atoi (av[3]), atoi (av[4]), ac == 6 ? av[5] : (char *) NULL); if (ret == 0) - fprintf(stderr, dialog_input_result); + fputs(dialog_input_result, stderr); return ret; } diff --git a/src/games/kart/kart.c b/src/games/kart/kart.c index 0b37980..bf4c566 100644 --- a/src/games/kart/kart.c +++ b/src/games/kart/kart.c @@ -23,7 +23,7 @@ #if defined MENU_SUPPORT && defined GAME_KART -// icon (TODO: convert to hex) +// icon static const uint8_t icon[8] PROGMEM = { 0xE1, // 0b11100001, 0xE1, // 0b11100001, @@ -230,7 +230,8 @@ void kart_game(){ wait(WAIT); } - snprintf(game_over, sizeof(game_over), "