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
When compiling from git master, I get this compile-time warning repeated lots of times:
In file included from lnav_util.hh:50:0,
from log_format.hh:53,
from logfile.hh:48,
from lnav.hh:46,
from readline_possibilities.cc:36:
ptimec.hh: In function ‘void ftime_i(char*, off_t&, ssize_t, const exttm&)’:
ptimec.hh:387:57: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
snprintf(&dst[off_inout], len - off_inout, "%lld", t);
^
The text was updated successfully, but these errors were encountered:
aspiers
added a commit
to aspiers/lnav
that referenced
this issue
Nov 20, 2016
Fix warnings like:
ptimec.hh: In function ‘void ftime_i(char*, off_t&, ssize_t, const exttm&)’:
ptimec.hh:387:57: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
snprintf(&dst[off_inout], len - off_inout, "%lld", t);
^
In this case we know that the `t` returned by `tm2sec` is a number of
seconds, so a long should be long enough, and anyway there is already
code checking for overflow.
Fixeststack#368.
tstack#368
When compiling from git
master
, I get this compile-time warning repeated lots of times:The text was updated successfully, but these errors were encountered: