summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-03-09 21:35:09 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-03-09 21:35:09 +0000
commit327f5f14a5f3335b2802614558f4c4dbfcb5c6bc (patch)
tree1cc3f7dc887cac32f10dab2507ebddef7f0db693
parent00651bc412ef9b0164b893b6b8e08081e882617f (diff)
Removed warning about for(;;) variable lookup
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--fluid/Fl_Function_Type.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index d43476d24..5b14f5423 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -755,7 +755,8 @@ void Fl_Comment_Type::open() {
db.deleteEntry(itempath);
comment_predefined->remove(last_selected_item);
Fl_Preferences menu(Fl_Preferences::USER, "fltk.org", "fluid_comments_menu");
- for (int i=4, n=0; i<comment_predefined->size(); i++) {
+ int i, n;
+ for (i=4, n=0; i<comment_predefined->size(); i++) {
const Fl_Menu_Item *mi = comment_predefined->menu()+i;
if (comment_predefined->item_pathname(itempath, 255, mi)==0) {
if (itempath[0]=='/') memmove(itempath, itempath+1, 255);