Author: dpage
Date: 2005-05-06 22:42:15 +0100 (Fri, 06 May 2005)
New Revision: 4155
Modified:
trunk/pgadmin3/src/main/events.cpp
trunk/pgadmin3/src/schema/pgDatabase.cpp
trunk/pgadmin3/src/schema/pgObject.cpp
Log:
Cleanup some GCC warnings
Modified: trunk/pgadmin3/src/main/events.cpp
===================================================================
--- trunk/pgadmin3/src/main/events.cpp 2005-05-06 21:16:44 UTC (rev 4154)
+++ trunk/pgadmin3/src/main/events.cpp 2005-05-06 21:42:15 UTC (rev 4155)
@@ -1256,7 +1256,6 @@
if (index >= 0)
{
- long firstSelected = index;
pgObject *data=collection->FindChild(browser, index);
if (!data || !data->CanDrop())
Modified: trunk/pgadmin3/src/schema/pgDatabase.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgDatabase.cpp 2005-05-06 21:16:44 UTC (rev 4154)
+++ trunk/pgadmin3/src/schema/pgDatabase.cpp 2005-05-06 21:42:15 UTC (rev 4155)
@@ -158,7 +158,7 @@
bool pgDatabase::ExecuteVoid(const wxString& sql)
{
- bool rc;
+ bool rc=0;
if (connection())
{
rc = connection()->ExecuteVoid(sql);
Modified: trunk/pgadmin3/src/schema/pgObject.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgObject.cpp 2005-05-06 21:16:44 UTC (rev 4154)
+++ trunk/pgadmin3/src/schema/pgObject.cpp 2005-05-06 21:42:15 UTC (rev 4155)
@@ -662,7 +662,7 @@
void pgServerObject::FillOwned(wxTreeCtrl *browser, ctlListView *referencedBy, const wxArrayString &dblist, const
wxString&query)
{
- pgCollection *databases;
+ pgCollection *databases=0;
wxCookieType cookie;
wxTreeItemId item=browser->GetFirstChild(GetServer()->GetId(), cookie);