From 3170f880c29803bd2c461fceb119ab5d4f9d5a7c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 28 Mar 2021 12:17:10 -0600 Subject: [PATCH] stop clang from complaining about a missing return after a guaranteed assert() failure --- libs/temporal/temporal/timeline.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/temporal/temporal/timeline.h b/libs/temporal/temporal/timeline.h index f728f9055d..a05b138e51 100644 --- a/libs/temporal/temporal/timeline.h +++ b/libs/temporal/temporal/timeline.h @@ -254,8 +254,8 @@ class LIBTEMPORAL_API timepos_t : public int62_t { timecnt_t expensive_distance (timepos_t const & p) const; timepos_t expensive_add (timepos_t const & s) const; - int62_t operator- (int62_t) const { assert (0); } - int62_t operator- (int64_t) const { assert (0); } + int62_t operator- (int62_t) const { assert (0); return int62_t (false, 0); } + int62_t operator- (int64_t) const { assert (0); return int62_t (false, 0); } using int62_t::operator int64_t; using int62_t::operator-=;