• Bug#265440: ksimus: FTBFS with gcc-3.4: extra `;' (1/3)

    From Andreas Jochens@1:229/2 to All on Fri Aug 13 10:50:11 2004
    From: [email protected]

    Package: ksimus
    Severity: normal
    Tags: patch

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

    x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/kde -I/usr/share/qt3/include -I. -I.. -I../items -I../lib -I../module -I../tools -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic
    -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fPIC -c -o ksimbooltristate.o `test -f 'ksimbooltristate.cpp' || echo './'`
    ksimbooltristate.cpp
    cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC/Pascal but not for C++
    In file included from ksimbooltristate.cpp:27:
    enumdict.h:139: error: extra `;'
    ksimbooltristate.cpp:36: error: too few template-parameter-lists ksimbooltristate.cpp:36: error: expected `,' or `;' before '=' token
    make[4]: *** [ksimbooltristate.o] Error 1
    make[4]: Leaving directory `/ksimus-0.3.6-2/ksimus/tools'

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

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/ksimus-0.3.6-2/ksimus/boolean/boolean1out.cpp ./ksimus/boolean/boolean1out.cpp
    --- ../tmp-orig/ksimus-0.3.6-2/ksimus/boolean/boolean1out.cpp 2002-12-22 00:30:04.000000000 +0100
    +++ ./ksimus/boolean/boolean1out.cpp 2004-08-13 09:09:22.352099113 +0200
    @@ -97,12 +97,12 @@
    bool Boolean1Out::getResetState() const
    {
    return m_flags & FLAGS_RESET_TRUE;
    -};
    +}

    bool Boolean1Out::getResetStateInit() const
    {
    return m_flags & FLAGS_RESET_INIT_TRUE;
    -};
    +}



    diff -urN ../tmp-orig/ksimus-0.3.6-2/ksimus/boolean/booleanled.cpp ./ksimus/boolean/booleanled.cpp
    --- ../tmp-orig/ksimus-0.3.6-2/ksimus/boolean/booleanled.cpp 2002-10-27 00:55:28.000000000 +0200
    +++ ./ksimus/boolean/booleanled.cpp 2004-08-13 09:09:44.947664065 +0200
    @@ -422,7 +422,7 @@
    {
    return m_color;
    }
    -};
    +}


    void BooleanLedColorPropertyWidget::slotRed()
    diff -urN ../tmp-orig/ksimus-0.3.6-2/ksimus/component.cpp ./ksimus/component.cpp
    --- ../tmp-orig/ksimus-0.3.6-2/ksimus/component.cpp 2003-02-16 17:32:38.000000000 +0100
    +++ ./ksimus/component.cpp 2004-08-13 09:19:33.145244441 +0200
    @@ -5