From 5b167bd18591101651666eb27f30e1eeaa61698b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 29 Dec 2020 10:41:38 +0100 Subject: [PATCH] box-drawing: remove __attribute__((__const__)) from thickness() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit thickness() is a static function and thus ‘const’ is not necessary. --- box-drawing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box-drawing.c b/box-drawing.c index fb6f8d1b..bca651da 100644 --- a/box-drawing.c +++ b/box-drawing.c @@ -14,7 +14,7 @@ #define LIGHT 1.0 #define HEAVY 2.0 -static int CONST +static int thickness(float pts, int dpi) { return pts * (float)dpi / 72.0;