• Bug#266703: icmake: FTBFS with gcc-3.4: label at end of compound statem

    From Andreas Jochens@1:229/2 to All on Wed Aug 18 21:30:10 2004
    From: [email protected]

    Package: icmake
    Severity: normal
    Tags: patch

    When building 'icmake' with gcc-3.4 I get the following error:

    callrss.c: In function `callrss':
    callrss.c:88: error: label at end of compound statement
    cast.c: In function `cast':
    cast.c:34: error: label at end of compound statement
    gencode.c: In function `gencode':
    gencode.c:123: error: label at end of compound statement

    With the attached patch 'icmake' can be compiled using gcc-3.4.

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/icmake-6.22/comp/callrss.c ./comp/callrss.c
    --- ../tmp-orig/icmake-6.22/comp/callrss.c 1999-11-06 11:33:52.000000000 +0100
    +++ ./comp/callrss.c 2004-08-18 21:07:59.923249513 +0200
    @@ -85,6 +85,7 @@
    case f_exists:
    case f_sizeoflist:
    */
    + break;
    }
    if (args)
    gencode (e, op_asp, args); /* add stack pointer */
    diff -urN ../tmp-orig/icmake-6.22/comp/cast.c ./comp/cast.c
    --- ../tmp-orig/icmake-6.22/comp/cast.c 1999-11-06 11:34:34.000000000 +0100
    +++ ./comp/cast.c 2004-08-18 21:08:18.541419121 +0200
    @@ -31,6 +31,7 @@
    default is entered in the switch to prevent a long compiler
    warning
    */
    + break;
    }
    return (e);
    }
    diff -urN ../tmp-orig/icmake-6.22/comp/gencode.c ./comp/gencode.c
    --- ../tmp-orig/icmake-6.22/comp/gencode.c 1999-11-06 11:40:51.000000000 +0100
    +++ ./comp/gencode.c 2004-08-18 21:08:50.544553905 +0200
    @@ -120,5 +120,6 @@
    op_smeq
    op_greq
    */
    + break;
    }
    }


    --
    To UNSUBSCRIBE, email to d