2.6.0-test5-mm4: wanxl doesn't compile with gcc 2.95

Adrian Bunk
2003-09-22T19:11:00Z

I'm getting the following compile error with gcc 2.95:

<-- snip -->

...
CC drivers/net/wan/wanxl.o
drivers/net/wan/wanxl.c: In function `pci_map_single_debug':
drivers/net/wan/wanxl.c:128: warning: unsigned int format, different type arg (arg 3)
drivers/net/wan/wanxl.c: In function `wanxl_tx_intr':
drivers/net/wan/wanxl.c:185: parse error before `struct'
drivers/net/wan/wanxl.c:200: `skb' undeclared (first use in this function)
drivers/net/wan/wanxl.c:200: (Each undeclared identifier is reported only once
drivers/net/wan/wanxl.c:200: for each function it appears in.)
drivers/net/wan/wanxl.c: In function `wanxl_xmit':
drivers/net/wan/wanxl.c:298: parse error before `*'
drivers/net/wan/wanxl.c:299: `desc' undeclared (first use in this function)
drivers/net/wan/wanxl.c: In function `wanxl_pci_init_one':
drivers/net/wan/wanxl.c:631: warning: unsigned int format, different type arg (arg 3)
drivers/net/wan/wanxl.c: At top level:
drivers/net/wan/wanxl.c:34: warning: `version' defined but not used
make[3]: *** [drivers/net/wan/wanxl.o] Error 1

<-- snip -->

For gcc 2.95, all variable declarations must be at the beginning.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed