You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: non-constant-expression cannot be narrowed from type 'std::__1::chrono::duration<long long, std::__1::ratio<1, 1> >::rep' (aka 'long long') to 'long' in initializer list
#18
Open
yurivict opened this issue
Mar 29, 2020
· 1 comment
/wrkdirs/usr/ports/deskutils/peaclock/work/peaclock-0.4.1/./src/ob/timer.hh:86:25: error: non-constant-expression cannot be narrowed from type 'std::__1::chrono::duration<long long, std::__1::ratio<1, 1> >::rep' (aka 'long long') to 'long' in initializer list [-Wc++11-narrowing]
long int const now {std::chrono::time_point_cast<std::chrono::seconds>(_total).time_since_epoch().count()};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/deskutils/peaclock/work/peaclock-0.4.1/./src/ob/timer.hh:86:25: note: insert an explicit cast to silence this issue
long int const now {std::chrono::time_point_cast<std::chrono::seconds>(_total).time_since_epoch().count()};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<long>( )
/wrkdirs/usr/ports/deskutils/peaclock/work/peaclock-0.4.1/./src/ob/timer.hh:108:26: error: non-constant-expression cannot be narrowed from type 'std::__1::chrono::duration<long long, std::__1::ratio<1, 1> >::rep' (aka 'long long') to 'long' in initializer list [-Wc++11-narrowing]
long int const diff {std::chrono::time_point_cast<std::chrono::seconds>(_total).time_since_epoch().count()};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/deskutils/peaclock/work/peaclock-0.4.1/./src/ob/timer.hh:108:26: note: insert an explicit cast to silence this issue
long int const diff {std::chrono::time_point_cast<std::chrono::seconds>(_total).time_since_epoch().count()};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<long>( )
/wrkdirs/usr/ports/deskutils/peaclock/work/peaclock-0.4.1/./src/ob/timer.hh:120:26: error: non-constant-expression cannot be narrowed from type 'std::__1::chrono::duration<long long, std::__1::ratio<1, 1> >::rep' (aka 'long long') to 'long' in initializer list [-Wc++11-narrowing]
long int const diff {std::chrono::time_point_cast<std::chrono::seconds>(_total).time_since_epoch().count()};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/deskutils/peaclock/work/peaclock-0.4.1/./src/ob/timer.hh:120:26: note: insert an explicit cast to silence this issue
long int const diff {std::chrono::time_point_cast<std::chrono::seconds>(_total).time_since_epoch().count()};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<long>( )
3 errors generated.
The text was updated successfully, but these errors were encountered:
http://beefy17.nyi.freebsd.org/data/head-i386-default/p529299_s359382/logs/peaclock-0.4.1.log (IPv6 URL)
clang-8 errors:
The text was updated successfully, but these errors were encountered: