summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorTim Wiederhake <twied@gmx.net>2023-12-30 20:49:48 +0100
committerTim Wiederhake <twied@gmx.net>2024-01-21 13:14:36 +0100
commita0a4604cab350eb6a8bd3cc56cfb35d534fa344b (patch)
tree153eea93ec30f19c2f8d09ac7b2b0a530002f03c /src/util.c
parent783b31821d87ea551457f4700f796a51f359cfd1 (diff)
Remove storage specifier 'register'
'register' is an optimization hint to the compiler that is generally not necessary and needlessly prevents using a c++ compiler to compile twm. Signed-off-by: Tim Wiederhake <twied@gmx.net>
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index a3673e3..f77b0b6 100644
--- a/src/util.c
+++ b/src/util.c
@@ -96,7 +96,7 @@ MoveOutline(Window root, int x, int y, int width, int height, int bw, int th)
int xl, xr, yt, yb, xinnerl, xinnerr, yinnert, yinnerb;
int xthird, ythird;
XSegment outline[18];
- register XSegment *r;
+ XSegment *r;
if (x == lastx && y == lasty && width == lastWidth && height == lastHeight
&& lastBW == bw && th == lastTH)
@@ -587,7 +587,7 @@ FindFontSet(MyFont *font, const char *fontname)
int ascent;
int descent;
int fnum;
- register int i;
+ int i;
if (font->fontset != NULL) {
XFreeFontSet(dpy, font->fontset);