aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2011-07-12 20:22:38 -0700
committerJeff Garzik <jgarzik@exmulti.com>2011-07-12 20:22:38 -0700
commit4ea952d5c03e18b9ddd0e97f4434cd9092358dab (patch)
treef0f627dc9188eb11b02bed39ca66287ccd9634af /src/db.h
parent0ca8324f599eda83cae5f6a99ed9d1d40ec3ff2d (diff)
parentd0538a81bb7836865086d72ccc6a4d263fa49aef (diff)
Merge pull request #399 from muggenhor/warning-fixes
Warning fixes
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db.h b/src/db.h
index a86c110b3f..bd8254f7dd 100644
--- a/src/db.h
+++ b/src/db.h
@@ -88,7 +88,7 @@ protected:
if (!pdb)
return false;
if (fReadOnly)
- assert(("Write called on database in read-only mode", false));
+ assert(!"Write called on database in read-only mode");
// Key
CDataStream ssKey(SER_DISK);
@@ -117,7 +117,7 @@ protected:
if (!pdb)
return false;
if (fReadOnly)
- assert(("Erase called on database in read-only mode", false));
+ assert(!"Erase called on database in read-only mode");
// Key
CDataStream ssKey(SER_DISK);