diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-02 16:47:47 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-02 16:47:47 +0000 |
| commit | 0861e8d3778b2d1cc19e99c968abbc72778dcae1 (patch) | |
| tree | 844e2842be467abea50806674e954e5f0c06152f | |
| parent | box-drawing: codespell: assymetrical -> asymmetrical (diff) | |
box-drawing: drop ‘pragma GCC optimize(“Os”)’
“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.
| -rw-r--r-- | box-drawing.c | 4 |
1 files changed, 0 insertions, 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; |
