Date: Fri, 22 Jan 2016 15:03:23 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r294567 - head/contrib/bsnmp/snmp_mibII Message-ID: <201601221503.u0MF3Nv0016703@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601221503.u0MF3Nv0016703>