Use constexpr for IPAddr::v4_mapped_prefix declaration

The inconsistent use of constexpr in the definition but not declaration
causes an unrecoverable error for Coverity as seen in issue 1431151
This commit is contained in:
Jon Siwek 2020-08-17 10:59:15 -07:00
parent 5816ea27e9
commit 88b2b01819
2 changed files with 4 additions and 5 deletions

View file

@ -12,10 +12,6 @@
#include "analyzer/Manager.h"
constexpr uint8_t zeek::IPAddr::v4_mapped_prefix[12] = { 0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0xff, 0xff };
const zeek::IPAddr zeek::IPAddr::v4_unspecified = zeek::IPAddr(in4_addr{});
const zeek::IPAddr zeek::IPAddr::v6_unspecified = zeek::IPAddr();