From 0861e8d3778b2d1cc19e99c968abbc72778dcae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 2 Jan 2021 17:47:47 +0100 Subject: [PATCH] =?UTF-8?q?box-drawing:=20drop=20=E2=80=98pragma=20GCC=20o?= =?UTF-8?q?ptimize(=E2=80=9COs=E2=80=9D)=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “The optimize attribute should be used for debugging purposes only. It is not suitable in production code.” Luckily, it seems it really isn’t needed anymore; with all the other size optimizations that has been done since this was introduced, there is no longer any difference with or without this pragma. --- box-drawing.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/box-drawing.c b/box-drawing.c index 35ecf1c8..e655bfdc 100644 --- a/box-drawing.c +++ b/box-drawing.c @@ -15,10 +15,6 @@ #define LIGHT 1.0 #define HEAVY 2.0 -#if defined(__GNUC__) - #pragma GCC optimize("Os") -#endif - struct buf { uint8_t *data; int width;