mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
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:
parent
5816ea27e9
commit
88b2b01819
2 changed files with 4 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue