Had a few spare cycles, so tried compiling Tools with gcc-4.4.3.
This change fixes all compilation errors. (It does NOT do the
compiler upgrade, hence the minimal testing.)
All changes are mechanical / should be correct at compile-time.
appUtilFileTypes.h: hash_map was never a standard, use the
standardized (std::tr1) unordered_map. Which removes ifdefs too.
most other files: character strings are "const" in C++.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
{
GHashTable *myHashTable = NULL;
GIOChannel *myChannel = NULL;
- GIOStatus keyIoStatus;
- GIOStatus valIoStatus;
+ GIOStatus keyIoStatus = G_IO_STATUS_ERROR;
+ GIOStatus valIoStatus = G_IO_STATUS_ERROR;
gchar *myKeyLine = NULL;
gchar *myValLine = NULL;
Bool parseError = FALSE;
ASSERT(ctx);
int argc = 1;
- char *argv[] = {"", NULL};
+ const char *argv[] = {"", NULL};
m_main = new Gtk::Main(&argc, (char ***) &argv, false);
if (wrapper) {