mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
* Fixed some compiler warnings
* Fixed prebuild.xml to remove DB4o references (more compiler warnings)
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user