Date: Mon, 27 Aug 2018 05:31:21 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478176 - head/comms/telldus-core Message-ID: <201808270531.w7R5VLYR046619@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Mon Aug 27 05:31:21 2018 New Revision: 478176 URL: https://svnweb.freebsd.org/changeset/ports/478176 Log: 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) Modified: head/comms/telldus-core/Makefile Modified: head/comms/telldus-core/Makefile ============================================================================== --- head/comms/telldus-core/Makefile Mon Aug 27 04:14:10 2018 (r478175) +++ head/comms/telldus-core/Makefile Mon Aug 27 05:31:21 2018 (r478176) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808270531.w7R5VLYR046619>