summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 70a46e8e..b5f9983a 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -1166,8 +1166,10 @@ void forecast_posts::flush()
}
date_t& begin = *(*least).first.start;
+#if !defined(NO_ASSERTS)
if ((*least).first.finish)
assert(begin < *(*least).first.finish);
+#endif
// If the next date in the series for this periodic posting is more than 5
// years beyond the last valid post we generated, drop it from further