From 9c8379c25466bf142459a26b0f34521bdde2af12 Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Sun, 8 Apr 2018 12:03:44 -0400 Subject: [PATCH] Explicitly declares variable types for ints GCC 7 discourages implicit typing --- optar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optar.c b/optar.c index c6c9d13..1f2cba1 100644 --- a/optar.c +++ b/optar.c @@ -109,7 +109,7 @@ void border(void) memset(ptr,0,BORDER*WIDTH); } -void cross(x,y) +void cross(int x, int y) { unsigned char *ptr=ary+y*WIDTH+x; unsigned c; @@ -132,7 +132,7 @@ void crosses(void) } /* x is in the range 0 to DATA_WIDTH-1 */ -void text_block (destx, srcx, width) +void text_block (int destx, int srcx, int width) { int x, y; unsigned char *srcptr;