* Fixed some compiler warnings

* Fixed prebuild.xml to remove DB4o references (more compiler warnings)
This commit is contained in:
Adam Frisby
2008-05-07 21:42:23 +00:00
parent 17366af846
commit 5843f595a7
5 changed files with 6 additions and 17 deletions

View File

@@ -100,7 +100,7 @@ namespace OpenSim.Data.NHibernate
using(ISession session = factory.OpenSession()) {
session.Load(typeof(AssetBase), LLUUID.Zero);
}
} catch (ObjectNotFoundException e) {
} catch (ObjectNotFoundException) {
// yes, we know it's not there, but that's ok
} catch (ADOException e) {
Match m = RE.Match(e.ToString());

View File

@@ -98,7 +98,7 @@ namespace OpenSim.Data.NHibernate
using(ISession session = factory.OpenSession()) {
session.Load(typeof(InventoryItemBase), LLUUID.Zero);
}
} catch (ObjectNotFoundException e) {
} catch (ObjectNotFoundException) {
// yes, we know it's not there, but that's ok
} catch (ADOException e) {
Match m = RE.Match(e.ToString());

View File

@@ -91,7 +91,7 @@ namespace OpenSim.Data.NHibernate
using(ISession session = factory.OpenSession()) {
session.Load(typeof(UserProfileData), LLUUID.Zero);
}
} catch (ObjectNotFoundException e) {
} catch (ObjectNotFoundException) {
// yes, we know it's not there, but that's ok
} catch (ADOException e) {
Match m = RE.Match(e.ToString());
@@ -109,7 +109,8 @@ namespace OpenSim.Data.NHibernate
using(ISession session = factory.OpenSession()) {
user = session.Load(typeof(UserProfileData), uuid) as UserProfileData;
}
} catch (Exception e) {}
// BUG: CATCHALL IS BAD.
} catch (Exception) {}
return (user != null);
}

View File

@@ -979,7 +979,7 @@ namespace OpenSim.Data.SQLite
{
Helpers.TryParse((string)row["AuthbuyerID"], out authBuyerID);
}
catch (InvalidCastException e)
catch (InvalidCastException)
{
// Database table was created before we got here and now has null values :P
try