diff options
Diffstat (limited to 'src/serialize.h')
-rw-r--r-- | src/serialize.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serialize.h b/src/serialize.h index 626f7d6eff..c9dbdf7f9d 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -89,6 +89,7 @@ enum const bool fRead = false; \ unsigned int nSerSize = 0; \ ser_streamplaceholder s; \ + assert(fGetSize||fWrite||fRead); /* suppress warning */ \ s.nType = nType; \ s.nVersion = nVersion; \ {statements} \ @@ -102,6 +103,7 @@ enum const bool fWrite = true; \ const bool fRead = false; \ unsigned int nSerSize = 0; \ + assert(fGetSize||fWrite||fRead); /* suppress warning */ \ {statements} \ } \ template<typename Stream> \ @@ -112,6 +114,7 @@ enum const bool fWrite = false; \ const bool fRead = true; \ unsigned int nSerSize = 0; \ + assert(fGetSize||fWrite||fRead); /* suppress warning */ \ {statements} \ } |