On Tue, 2011-02-22 at 16:06 -0800, Wes Hardaker wrote:
I get a couple of warnings from gcc (4.6.0 prerelease):
../../../clean/local/minimalist/feature-check --feature-global
../../../clean/include/net-snmp/feature-details.h
../../../clean/apps/snmpnetstat/inet.c inet.ft /usr/local/gcc-head/bin/gcc -E
-I../../include -I../../../clean/include -fno-strict-aliasing -Os
-ffunction-sections -ggdb3 -Ulinux -Dlinux=linux -Wall -Wstrict-prototypes
-Wwrite-strings -Wcast-qual -c
In file included from ../../../clean/include/net-snmp/net-snmp-features.h:7:0,
from ../../../clean/include/net-snmp/library/snmp_api.h:33,
from ../../../clean/include/net-snmp/types.h:421,
from ../../../clean/include/net-snmp/definitions.h:22,
from ../../../clean/include/net-snmp/net-snmp-includes.h:67,
from ../../../clean/apps/snmpnetstat/inet.c:64:
../../../clean/include/net-snmp/feature-details.h:3:33: warning: missing
whitespace after the macro name [enabled by default]
../../../clean/include/net-snmp/feature-details.h:8:33: warning: missing
whitespace after the macro name [enabled by default]
../../../clean/include/net-snmp/feature-details.h:13:25: warning: missing
whitespace after the macro name [enabled by default]
../../../clean/include/net-snmp/feature-details.h:14:33: warning: missing
whitespace after the macro name [enabled by default]
../../../clean/include/net-snmp/feature-details.h:16:60: error: "1" may not
appear in macro parameter list
and then this repeats for almost every line in feature-details.h
For reference, here are the first 17 lines of feature-details.h:
1
2 /* required by ../../../clean/apps/snmpnetstat/inet.c */
3 #define NETSNMP_FEATURE_REQUIRE_#DEFINE 1
4 #define NETSNMP_FEATURE_REQUIRE_NETSNMP_FEATURE_REQUIRE(X) 1
5 #define NETSNMP_FEATURE_REQUIRE_X 1
6
7 /* features provided by ../../../clean/apps/snmpnetstat/inet.c */
8 #define NETSNMP_FEATURE_PROVIDE_#DEFINE 1
9 #define NETSNMP_FEATURE_PROVIDE_NETSNMP_FEATURE_PROVIDE(X) 1
10 #define NETSNMP_FEATURE_PROVIDE_X 1
11
12 /* features provided by ../../../clean/apps/snmpnetstat/inet.c */
13 #define NETSNMP_FEATURE_#DEFINE_CHILD_OF_#DEFINE 1
14 #define NETSNMP_FEATURE_PROVIDE_#DEFINE 1
15 #define NETSNMP_FEATURE_NETSNMP_FEATURE_CHILD_OF(X_CHILD_OF_Y) 1
16 #define NETSNMP_FEATURE_PROVIDE_NETSNMP_FEATURE_CHILD_OF(X 1
17 #define NETSNMP_FEATURE_X_CHILD_OF_Y 1
and I have to admit that this doesn't look like C to me...
/MF
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders