From owner-svn-ports-head@freebsd.org Tue Sep 4 13:34:04 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C943BFEF1B9; Tue, 4 Sep 2018 13:34:04 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DE1997945; Tue, 4 Sep 2018 13:34:04 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 78CD217B3A; Tue, 4 Sep 2018 13:34:04 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w84DY4Aj095696; Tue, 4 Sep 2018 13:34:04 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w84DY42Z095695; Tue, 4 Sep 2018 13:34:04 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201809041334.w84DY42Z095695@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 4 Sep 2018 13:34:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478958 - head/sysutils/npadmin X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: head/sysutils/npadmin X-SVN-Commit-Revision: 478958 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2018 13:34:05 -0000 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