HomeFreeBSD

net/linknx: Fix build with Clang 6

Description

net/linknx: Fix build with Clang 6

objectcontroller.cpp:659:27: error: non-constant-expression cannot be narrowed from type 'int' to 'uint8_t' (aka 'unsigned char') in initializer list [-Wc++11-narrowing]

uint8_t buf[2] = { 0, (isWrite ? 0x80 : 0x40) | (getBoolObjectValue() ? 1 : 0) };
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p479076_s338486/logs/errors/linknx-0.0.1.32.log

PR: 230897
Submitted by: tobik
Approved by: bkoenig@alpha-tierchen.de (maintainer timeout, 2 weeks)

Details

Provenance
tobikAuthored on
Parents
rP479272: astro/wmsolar: Fix build with Clang 6
Branches
Unknown
Tags
Unknown