diff options
author | sabetts <sabetts> | 2000-09-15 04:34:13 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-09-15 04:34:13 +0000 |
commit | 626fbbf023617dc90e40746e01552a3c50c93b04 (patch) | |
tree | 1f97c04ae35e7894eaa2da4c8a5f5e39cc5e5b72 /src/manage.c | |
parent | 2c96f882bdcc0c8eb44181cf05ca7829892f5fba (diff) | |
download | ratpoison-626fbbf023617dc90e40746e01552a3c50c93b04.zip |
minor change to update_window_name to get rid of a compiler warning
when debugging messages are not enabled.
Diffstat (limited to 'src/manage.c')
-rw-r--r-- | src/manage.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/manage.c b/src/manage.c index 90a3a2c..592200a 100644 --- a/src/manage.c +++ b/src/manage.c @@ -46,7 +46,6 @@ update_window_name (rp_window *win) XTextProperty text; char **name_list; int list_len; - int i; /* Don't overwrite the window name if the user specified one. */ if (win->named) return 0; @@ -63,11 +62,16 @@ update_window_name (rp_window *win) return 0; } + /* Sorta sick... */ #ifdef DEBUG - for (i=0; i<list_len; i++) - { - PRINT_DEBUG ("WMName: %s\n", name_list[i]); - } + { + int i; + + for (i=0; i<list_len; i++) + { + PRINT_DEBUG ("WMName: %s\n", name_list[i]); + } + } #endif /* DEBUG */ /* Set the window's name to the first in the name_list */ |