From f5a9aeff006d6fda16fba5156b151f6faf8b75cc Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Wed, 1 May 2024 21:51:21 +0200 Subject: [PATCH] fix -Wdeprecated-non-prototype in rt_draw.c --- rott/rt_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rott/rt_draw.c b/rott/rt_draw.c index fd32286..0da7a99 100644 --- a/rott/rt_draw.c +++ b/rott/rt_draw.c @@ -751,13 +751,13 @@ int CalcRotate (objtype *ob) #define SGN(x) ((x>0) ? (1) : ((x==0) ? (0) : (-1))) /*--------------------------------------------------------------------------*/ -int CompareHeights(s1p,s2p) visobj_t **s1p,**s2p; +int CompareHeights(visobj_t **s1p, visobj_t **s2p) { whereami=3; return SGN((*s1p)->viewheight-(*s2p)->viewheight); } -void SwitchPointers(s1p,s2p) visobj_t **s1p,**s2p; +void SwitchPointers(visobj_t **s1p, visobj_t **s2p) { visobj_t * temp;