From f2acb1dbd75605d64f07740df2d83e73fe1b2ec3 Mon Sep 17 00:00:00 2001 From: Thomas Kuehne Date: Sat, 11 Dec 2021 18:00:11 +0100 Subject: fix -Wabsolute-value compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes: Clock.c:2011:14: warning: using integer absolute value function ‘abs’ when argument is of floating-point type ‘float’ [-Wabsolute-value] 2011 | (abs(new->clock.update) <= SECOND_HAND_TIME); | ^~~ Signed-off-by: Alan Coopersmith --- Clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clock.c b/Clock.c index 5b33535..de6beb6 100644 --- a/Clock.c +++ b/Clock.c @@ -2016,7 +2016,7 @@ SetValues(Widget gcurrent, Widget grequest, Widget gnew, (XtPointer) gnew); new->clock.show_second_hand = - (abs(new->clock.update) <= SECOND_HAND_TIME); + (fabsf(new->clock.update) <= SECOND_HAND_TIME); if (new->clock.show_second_hand != current->clock.show_second_hand) redisplay = TRUE; } -- cgit v1.2.3