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 eacf51bc39..79dd25aab5 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -99,6 +99,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} \ @@ -112,6 +113,7 @@ enum const bool fWrite = true; \ const bool fRead = false; \ unsigned int nSerSize = 0; \ + assert(fGetSize||fWrite||fRead); /* suppress warning */ \ {statements} \ } \ template<typename Stream> \ @@ -122,6 +124,7 @@ enum const bool fWrite = false; \ const bool fRead = true; \ unsigned int nSerSize = 0; \ + assert(fGetSize||fWrite||fRead); /* suppress warning */ \ {statements} \ } |