diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-08 21:15:08 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-18 06:41:36 -0400 |
commit | 91f1119528b57f94d178f0cfb12efafd0c90bbc9 (patch) | |
tree | b98c68ebf25eb4c477fa99c2548d2c8a4804a4c0 /src/GCManager.c | |
parent | 43a65ae23370e0f7fb427e96c6d9037d8fa1af35 (diff) |
fixes cppcheck "style" warnings (mostly variable-scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/GCManager.c')
-rw-r--r-- | src/GCManager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GCManager.c b/src/GCManager.c index 5769d11..52e32ae 100644 --- a/src/GCManager.c +++ b/src/GCManager.c @@ -162,8 +162,7 @@ void _XtGClistFree( Display *dpy, register XtPerDisplay pd) { - register GCptr GClist, next; - register int i; + GCptr GClist, next; GClist = pd->GClist; while (GClist) { @@ -172,6 +171,7 @@ void _XtGClistFree( GClist = next; } if (pd->pixmap_tab) { + int i; for (i = ScreenCount(dpy); --i >= 0; ) { if (pd->pixmap_tab[i]) XtFree((char *)pd->pixmap_tab[i]); |