13
0

stop clang from complaining about a missing return after a guaranteed assert() failure

This commit is contained in:
Paul Davis 2021-03-28 12:17:10 -06:00
parent 153164c803
commit 3170f880c2

View File

@ -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-=;