HomeFreeBSD

security/sancp: Fix build with Clang 6

Description

security/sancp: Fix build with Clang 6

In file included from build_acl.cc:2:
In file included from ./sancp.h:47:
In file included from ./gvars.h:6:
./pcapFileHandle.h:19:30: error: constant expression evaluates to 212 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
const char pcap_header[] = { 0xd4,0xc3,0xb2,0xa1,0x02,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x4e,0x00,0x00,0x01,0x00,0x00,0x00 };

^~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p477696_s338122/logs/errors/sancp-1.6.1_6.log

  • Make sure CXXFLAGS is respected

PR: 230878
Submitted by: tobik
Approved by: bofh (maintainer timeout, 2 weeks)

Details

Provenance
tobikAuthored on
Parents
rP479233: Forward port r478722 | gerald | 2018-09-01 from lang/gcc7:
Branches
Unknown
Tags
Unknown