svn commit: r478176 - head/comms/telldus-core

Tobias Kortkamp tobik at FreeBSD.org
Mon Aug 27 05:31:22 UTC 2018


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 at 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
 


More information about the svn-ports-all mailing list