From a0a4604cab350eb6a8bd3cc56cfb35d534fa344b Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Sat, 30 Dec 2023 20:49:48 +0100 Subject: 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 --- src/menus.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/menus.c') diff --git a/src/menus.c b/src/menus.c index 5450363..9903f75 100644 --- a/src/menus.c +++ b/src/menus.c @@ -254,7 +254,7 @@ CreateTitleButton(const char *name, int func, const char *action, Scr->TBInfo.head = tb; } else if (append && rightside) { /* 3 */ - register TitleButton *t; + TitleButton *t; /* SUPPRESS 530 */ for (t = Scr->TBInfo.head; t->next; t = t->next); @@ -262,7 +262,7 @@ CreateTitleButton(const char *name, int func, const char *action, tb->next = NULL; } else { /* 2 */ - register TitleButton *t, *prev = NULL; + TitleButton *t, *prev = NULL; for (t = Scr->TBInfo.head; t && !t->rightside; t = t->next) { prev = t; @@ -1105,8 +1105,8 @@ belongs_to_twm_window(TwmWindow *t, Window w) return True; if (t && t->titlebuttons) { - register TBWindow *tbw; - register int nb = Scr->TBInfo.nleft + Scr->TBInfo.nright; + TBWindow *tbw; + int nb = Scr->TBInfo.nleft + Scr->TBInfo.nright; for (tbw = t->titlebuttons; nb > 0; tbw++, nb--) { if (tbw->window == w) @@ -1983,7 +1983,7 @@ ExecuteFunction(int func, const char *action, Window w, TwmWindow *tmp_win, case F_WARPPREV: case F_WARPNEXT: { - register TwmWindow *t; + TwmWindow *t; TwmWindow *of, *l, *n; int c = 0; @@ -2029,7 +2029,7 @@ ExecuteFunction(int func, const char *action, Window w, TwmWindow *tmp_win, case F_WARPTO: { - register TwmWindow *t; + TwmWindow *t; int len; len = (int) strlen(action); -- cgit v1.2.3