summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.h')
-rw-r--r--src/times.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/times.h b/src/times.h
index 6eadcad3..e3134665 100644
--- a/src/times.h
+++ b/src/times.h
@@ -218,6 +218,9 @@ struct date_duration_t
case YEARS:
return date + gregorian::years(length);
}
+#if !defined(__clang__)
+ return date_t();
+#endif
}
date_t subtract(const date_t& date) const {
@@ -233,6 +236,9 @@ struct date_duration_t
case YEARS:
return date - gregorian::years(length);
}
+#if !defined(__clang__)
+ return date_t();
+#endif
}
string to_string() const {