how remove this pesky compiler warning message...?



I'm using GTK+ (not Gtkmm) in C++
and trying to define a GtkItemFactory object for a menu...

GtkItemFactoryEntry MenuBar::menuItems[] = {
   {"/_Simulation",           NULL, NULL,                 0, "<Branch>"},
   {"/Simulation/_Start",     NULL, startSimulation,      0, "<Item>"  },
   {"/Simulation/_Exit",      NULL, gtk_main_quit,        0, "<Item>"  },

   {"/_Help",                 NULL, NULL,                 0, "<Branch>"},
   {"/Help/_User's Guide...", NULL, showUsersGuideWindow, 0, "<Item>"  },
   {"/Help/_About...",        NULL, showAboutWindow,      0, "<Item>"  }
};

*All* works great but g++ gives this when I compile...

GUI.cpp:45: warning: ANSI C++ prohibits conversion from `()' to `(...)'
GUI.cpp:45: warning: ANSI C++ prohibits conversion from `()' to `(...)'
GUI.cpp:45: warning: ANSI C++ prohibits conversion from `()' to `(...)'
GUI.cpp:45: warning: ANSI C++ prohibits conversion from `()' to `(...)'

I know it is just a warning but what does it mean and how remove?

Thanks,

Chris



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]