svn commit: r478958 - head/sysutils/npadmin

Tobias Kortkamp tobik at FreeBSD.org
Tue Sep 4 13:34:05 UTC 2018


Author: tobik
Date: Tue Sep  4 13:34:03 2018
New Revision: 478958
URL: https://svnweb.freebsd.org/changeset/ports/478958

Log:
  sysutils/npadmin: Fix build with Clang 6
  
  npadmin.C:109:41: error: constant expression evaluates to 2147483648 which cannot be narrowed to type 'int' [-Wc++11-narrowing]
      {"covers",      no_argument,&retval,COVER_FLAG},
                                          ^~~~~~~~~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p478648_s338416/logs/errors/npadmin-0.8.7_1.log

Modified:
  head/sysutils/npadmin/Makefile

Modified: head/sysutils/npadmin/Makefile
==============================================================================
--- head/sysutils/npadmin/Makefile	Tue Sep  4 13:31:29 2018	(r478957)
+++ head/sysutils/npadmin/Makefile	Tue Sep  4 13:34:03 2018	(r478958)
@@ -10,7 +10,11 @@ MASTER_SITES=	SF
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	SNMP based command line network printer management tool
 
+USES=		compiler
 GNU_CONFIGURE=	yes
+
+CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang=	-Wno-c++11-narrowing
 
 PLIST_FILES=	bin/npadmin man/man1/${PORTNAME}.1.gz
 


More information about the svn-ports-all mailing list