[Home]

Summary:ASTERISK-01382: Compile of wcfxs.c (CVS version 1.45) fails with gcc 2.95.4 20011002 (Debian prerelease)
Reporter:robf (robf)Labels:
Date Opened:2004-04-09 12:16:51Date Closed:2004-09-25 02:52:13
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h  -DSTANDALONE_ZAPATA -c wcfxs.c
wcfxs.c:197: warning: unnamed struct/union that defines no instances
wcfxs.c: In function `wcfxs_interrupt':
wcfxs.c:650: structure has no member named `fxs'
wcfxs.c:652: structure has no member named `fxs'
wcfxs.c:653: structure has no member named `fxs'
<snip>
Comments:By: zoa (zoa) 2004-04-09 12:48:20

i can confirm this. just tested it.

By: Mark Spencer (markster) 2004-04-09 13:06:43

Your compiler does not appear to properly support anonymous unions in the definition of a struct.  Google does not seem to confirm if this is legal or not, so I guess i'm going to have to err on the side of compatibility, even at the expense of readability.

By: Mark Spencer (markster) 2004-04-09 13:07:28

Fixed (if you can call it that) in CVS.