Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2018 13:34:04 +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: r478958 - head/sysutils/npadmin
Message-ID:  <201809041334.w84DY42Z095695@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809041334.w84DY42Z095695>