Search squid archive

Re: compiler Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Alex.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux