From 27b3b798027ebe38e3dfc0ac0062aee06b19eb98 Mon Sep 17 00:00:00 2001 From: girst Date: Fri, 25 May 2018 00:37:23 +0200 Subject: [PATCH] `-pedantic' fixes --- viiper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/viiper.c b/viiper.c index d639a21..3286543 100644 --- a/viiper.c +++ b/viiper.c @@ -130,6 +130,7 @@ restart: case GAME_INIT: case GAME_START: viiper(); + break; /* function doesn't return, but `-Wextra' complains */ case GAME_OVER: end_screen_msg = " GAME OVER "; goto end_screen; @@ -521,7 +522,7 @@ void append_movement (int dir) { g.k.c[g.k.h] = dir; g.k.n++; - g.k.h = ++g.k.h % 16; + g.k.h = (g.k.h+1) % 16; } void move_ph (int line, int col) { -- 2.39.3