[squid-users] compiler Error
Antony Stone
Antony.Stone at squid.open.source.it
Wed Aug 1 21:41:39 UTC 2018
On Wednesday 01 August 2018 at 23:34:28, joseph wrote:
> hi after i upgrade my debian i got gcc 8
So, maybe this is a Debian or a GCC problem, rather than a Squid problem?
> and warnings being treated as errors
Have you tried compiling anything other than Squid to see whether the problem
is with Squid or with the GCC defaults?
> cache_cf.cc: In function ‘void parse_time_t(time_t*)’:
> cache_cf.cc:2981:36: error: ‘tval’ may be used uninitialized in this
> function [-Werror=maybe-uninitialized]
> *var = static_cast<time_t>(tval/1000);
> ~~~~^~~~~
That does seem rather paranoid to me - "may be used uninitialized..." as an
error!?
Anyway, tell us exactly how you were building Squid when this happened, and we
may have some more ideas about what to do about it.
Antony.
--
This sentence contains exacly three erors.
Please reply to the list;
please *don't* CC me.
More information about the squid-users
mailing list