From owner-svn-src-head@freebsd.org Fri Jan 22 15:03:24 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50005A8DCCB; Fri, 22 Jan 2016 15:03:24 +0000 (UTC) (envelope-from bz@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 mx1.freebsd.org (Postfix) with ESMTPS id 21EAD1367; Fri, 22 Jan 2016 15:03:24 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0MF3NGH016704; Fri, 22 Jan 2016 15:03:23 GMT (envelope-from bz@FreeBSD.org) Received: (from bz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0MF3Nv0016703; Fri, 22 Jan 2016 15:03:23 GMT (envelope-from bz@FreeBSD.org) Message-Id: <201601221503.u0MF3Nv0016703@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bz set sender to bz@FreeBSD.org using -f From: "Bjoern A. Zeeb" Date: Fri, 22 Jan 2016 15:03:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r294567 - head/contrib/bsnmp/snmp_mibII X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2016 15:03:24 -0000 Author: bz Date: Fri Jan 22 15:03:22 2016 New Revision: 294567 URL: https://svnweb.freebsd.org/changeset/base/294567 Log: Change the variable to a #define in order to make gcc happy which otherwise will complain about "variably modified 'alias' at file scope". Unbreaks the build on gcc platforms. Modified: head/contrib/bsnmp/snmp_mibII/mibII.h Modified: head/contrib/bsnmp/snmp_mibII/mibII.h ============================================================================== --- head/contrib/bsnmp/snmp_mibII/mibII.h Fri Jan 22 15:00:01 2016 (r294566) +++ head/contrib/bsnmp/snmp_mibII/mibII.h Fri Jan 22 15:03:22 2016 (r294567) @@ -58,7 +58,7 @@ #include "mibII_tree.h" /* maximum size of the interface alias */ -static const u_int MIBIF_ALIAS_SIZE = 64 + 1; +#define MIBIF_ALIAS_SIZE (64 + 1) /* * Interface list and flags.