[Bridge] [PATCH] rstp compiling under gcc 4.3.3 fixes

Denys Fedoryschenko denys at visp.net.lb
Sat Mar 28 06:36:48 PDT 2009

After fetching current git code and compiling with gcc 4.3.3 got errors
Here is fix, so rstp compile fine with gcc 4.3.3

bridge_track.c and main.c have functions where is return value not checked.
 Because of -Werror it won't compile.
gcc -Wall -Werror -O2 -g -D_REENTRANT -D__LINUX__ -DVERSION=0.16 -DBUILD=1 -I. -I./include -I./rstplib   -c -o 
main.o main.c
cc1: warnings being treated as errors
main.c: In function 'main':
main.c:81: error: ignoring return value of 'daemon', declared with attribute 

Other fix is missing header file
gcc -Wall -O2 -g -D_REENTRANT -D__LINUX__ -DVERSION=0.16 -DBUILD=1 -I. -I./include -I./rstplib   -c -o 
netif_utils.o netif_utils.c
netif_utils.c: In function 'get_bridge_portno':
netif_utils.c:130: error: 'INT_MAX' undeclared (first use in this function)
netif_utils.c:130: error: (Each undeclared identifier is reported only once
netif_utils.c:130: error: for each function it appears in.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rstp-fixes.diff
Type: text/x-diff
Size: 1872 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/bridge/attachments/20090328/cbbc0d38/attachment.diff 

More information about the Bridge mailing list