Package: baycomepp
Version: 0.10-7
Severity: serious

This package fails to build because it contains jumps into statement
expressions:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DCONFIGDIR=\"/usr/etc\" 
-DLOCALSTATEDIR=\"/usr/var\"  -I../directx/include 
-I../directx/include/directx6      -I.. -fPIC    -O2 -g -Wall -c fpgatests.c
fpgatests.c: In function 'ledtest':
fpgatests.c:319: warning: operation on 'led' may be undefined
fpgatests.c: In function 'chkledtest':
fpgatests.c:579: warning: operation on 'led' may be undefined
fpgatests.c: In function 'hdlc_receive':
fpgatests.c:2016: error: jump into statement expression
fpgatests.c:2016: error: jump into statement expression
fpgatests.c:2017: error: jump into statement expression
fpgatests.c:2017: error: jump into statement expression
fpgatests.c:2018: error: jump into statement expression
fpgatests.c:2018: error: jump into statement expression
fpgatests.c:2019: error: jump into statement expression
fpgatests.c:2019: error: jump into statement expression
fpgatests.c:2020: error: jump into statement expression
fpgatests.c:2020: error: jump into statement expression
fpgatests.c:2021: error: jump into statement expression
fpgatests.c:2021: error: jump into statement expression
fpgatests.c:2022: error: jump into statement expression
fpgatests.c:2022: error: jump into statement expression
fpgatests.c:2023: error: jump into statement expression
fpgatests.c:2023: error: jump into statement expression
make[3]: *** [fpgatests.o] Error 1
make[3]: Leaving directory `/tmp/buildd/baycomepp-0.10/main'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/baycomepp-0.10'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/buildd/baycomepp-0.10'
make: *** [build] Error 2

The attached patch fixes these problems.

-- 
Matt
diff -u baycomepp-0.10/main/fpgatests.c baycomepp-0.10/main/fpgatests.c
--- baycomepp-0.10/main/fpgatests.c
+++ baycomepp-0.10/main/fpgatests.c
@@ -1973,7 +1973,7 @@
   enditer##j:
 
 #define DECODEITERB(j)                                                         
        \
-({                                                                             
        \
+{                                                                              
        \
   flgabrt##j:                                                                  
        \
         if (!(notbitstream & (0x1fc << j))) {              /* abort received 
*/        \
                 state = 0;                                                     
        \
@@ -1992,7 +1992,7 @@
         numbits--;                                                             
        \
         bitbuf = (bitbuf & ((~0xff) << j)) | ((bitbuf & ~((~0xff) << j)) << 
1);        \
         goto enditer##j;                                                       
        \
-})
+}
         
 /* ---------------------------------------------------------------------- */
 
diff -u baycomepp-0.10/udriver/drvresident.c 
baycomepp-0.10/udriver/drvresident.c
--- baycomepp-0.10/udriver/drvresident.c
+++ baycomepp-0.10/udriver/drvresident.c
@@ -217,7 +217,7 @@
   encodeend##j:
 
 #define ENCODEITERB(j)                                          \
-({                                                              \
+{                                                               \
   stuff##j:                                                     \
         bitstream &= ~(0x100 << j);                             \
         bitbuf = (bitbuf & (((2 << j) << numbit) - 1)) |        \
@@ -225,7 +225,7 @@
         numbit++;                                               \
         notbitstream = ~bitstream;                              \
         goto encodeend##j;                                      \
-})
+}
 
 static int hdlc_enqueue(u_int8_t *pkt, int len)
 {
@@ -326,7 +326,7 @@
   enditer##j:
 
 #define DECODEITERB(j)                                                         
        \
-({                                                                             
        \
+{                                                                              
        \
   flgabrt##j:                                                                  
        \
         if (!(notbitstream & (0x1fc << j))) {              /* abort received 
*/        \
                 stat = 0;                                                      
        \
@@ -345,7 +345,7 @@
         numbits--;                                                             
        \
         bitbuf = (bitbuf & ((~0xff) << j)) | ((bitbuf & ~((~0xff) << j)) << 
1);        \
         goto enditer##j;                                                       
        \
-})
+}
         
 /* --------------------------------------------------------------------- */
 

Attachment: signature.asc
Description: Digital signature

Reply via email to