diff options
Diffstat (limited to 'src/times.h')
-rw-r--r-- | src/times.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/times.h b/src/times.h index edc6d8b8..e3134665 100644 --- a/src/times.h +++ b/src/times.h @@ -218,7 +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 { @@ -234,7 +236,9 @@ struct date_duration_t case YEARS: return date - gregorian::years(length); } +#if !defined(__clang__) return date_t(); +#endif } string to_string() const { |