[squid-users] compiler Error

Alex Rousskov rousskov at measurement-factory.com
Wed Aug 1 21:48:21 UTC 2018

On 08/01/2018 03:34 PM, joseph wrote:
> hi after i upgrade my debian i got gcc 8  and warnings being treated as
> errors
> 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);
>                                 ~~~~^~~~~

GCC is confused, but the affected code should be rewritten to avoid that
confusion (e.g., parseTimeLine() should probably return the parsed value
and throw on errors). Quality patches welcome.

Meanwhile, consider ./configuring with --disable-strict-error-checking


More information about the squid-users mailing list