comms/telldus-core: Fix build with Clang 6

common/EventHandler_unix.cpp:83:24: error: non-constant-expression cannot be narrowed from type 'unsigned long long' to 'time_t' (aka 'int') in initializer list [-Wc++11-narrowing]
                timespec abstime = { now.tv_sec + (abstime_ns_large / 1000000000), abstime_ns_large % 1000000000 };
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/telldus-core-2.1.2_5.log

PR:		230882
Submitted by:	tobik
Approved by:	Johan Ström <johan@stromnet.se> (maintainer)
This commit is contained in:
Tobias Kortkamp 2018-08-27 05:31:21 +00:00
parent fabc682a9e
commit b273b12c27
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478176

View File

@ -28,6 +28,8 @@ CMAKE_ARGS+=-DGENERATE_MAN=TRUE
CMAKE_ARGS+=-DSYSCONF_INSTALL_DIR="${PREFIX}/etc"
# Using global /var, otherwise testport complains "Warning: port uses /usr/local/var instead of /var"
CMAKE_ARGS+=-DSTATE_INSTALL_DIR="/var/telldus"
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
MAKE_JOBS_UNSAFE= yes