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
it looks like the TimedIPSetRule does signed/unsigned comparisons:
In file included from dnsdist-lua.cc:26:0:
dnsrulactions.hh: In member function ‘virtual bool TimedIPSetRule::matches(const DNSQuestion*) const’:
dnsrulactions.hh:167:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return time(0) < fnd->second;
^
dnsrulactions.hh:174:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return time(0) < fnd->second;
^
dnsrulactions.hh: In member function ‘void TimedIPSetRule::cleanup()’:
dnsrulactions.hh:224:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(iter->second < now)
^
dnsrulactions.hh:236:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(iter->second < now)
^
dnsrulactions.hh: In member function ‘virtual std::string TimedIPSetRule::toString() const’:
dnsrulactions.hh:253:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(now < ip.second)
^
dnsrulactions.hh:259:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(now < ip.second)
^
Found when building dnsdist on raspbian (ARM)
The text was updated successfully, but these errors were encountered:
dnsdist-tcp.cc: In function ‘bool maxConnectionDurationReached(unsigned int, time_t, unsigned int&)’:
dnsdist-tcp.cc:194:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (elapsed >= maxConnectionDuration) {
^
Short description
it looks like the TimedIPSetRule does signed/unsigned comparisons:
Found when building dnsdist on raspbian (ARM)
The text was updated successfully, but these errors were encountered: