gcc 2.96 and his strict casting

From: Marc Maurer (j.m.maurer@student.utwente.nl)
Date: Mon Mar 03 2003 - 04:20:18 EST

  • Next message: F J Franklin: "commit: abi: Re: gcc 2.96 and his strict casting"

    gcc 2.96 is very strict to casting, so, for andrew, our casting purist,
    there is quite some work to do (only a small snippet follows):

    fp_Run.cpp: In method `void fp_Run::_inheritProperties ()':
    fp_Run.cpp:298: cannot convert `const GR_Font *' to `GR_Font *' in
    initialization
    fp_Run.cpp: In method `void fp_TabRun::_lookupProperties (const
    PP_AttrProp *, const PP_AttrProp *, const PP_AttrProp *)':
    fp_Run.cpp:1271: cannot convert `const GR_Font *' to `GR_Font *' in
    initialization
    fp_Run.cpp: In method `void fp_ForcedLineBreakRun::_lookupProperties
    (const PP_AttrProp *, const PP_AttrProp *, const PP_AttrProp *)':
    fp_Run.cpp:1703: cannot convert `const GR_Font *' to `GR_Font *' in
    initialization
    fp_Run.cpp: In method `void fp_ForcedLineBreakRun::_draw (dg_DrawArgs
    *)':
    fp_Run.cpp:1849: cannot convert `const GR_Font *' to `GR_Font *' in
    initialization
    fp_Run.cpp: In method `void fp_EndOfParagraphRun::_lookupProperties
    (const PP_AttrProp *, const PP_AttrProp *, const PP_AttrProp *)':
    fp_Run.cpp:2338: cannot convert `const GR_Font *' to `GR_Font *' in
    initialization
    fp_Run.cpp: In method `void fp_EndOfParagraphRun::_draw (dg_DrawArgs
    *)':
    fp_Run.cpp:2500: cannot convert `const GR_Font *' to `GR_Font *' in
    initialization
    fp_Run.cpp: In method `fp_FieldRun::fp_FieldRun (fl_BlockLayout *,
    GR_Graphics *, unsigned int, unsigned int)':
    fp_Run.cpp:2876: warning: unused variable `bool gotField'
    fp_Run.cpp: In method `void fp_FieldRun::_lookupProperties (const
    PP_AttrProp *, const PP_AttrProp *, const PP_AttrProp *)':
    fp_Run.cpp:3031: cannot convert `const GR_Font *' to `GR_Font *' in
    assignment
    fp_Run.cpp:3035: cannot convert `const GR_Font *' to `GR_Font *' in
    assignment
    fp_Run.cpp: In method `bool fp_FieldMMDDYYRun::calculateValue ()':
    fp_Run.cpp:3574: warning: `%y' yields only last 2 digits of year
    fp_Run.cpp: In method `bool fp_FieldDDMMYYRun::calculateValue ()':
    fp_Run.cpp:3598: warning: `%y' yields only last 2 digits of year
    fp_Run.cpp: In method `bool fp_FieldDefaultDateRun::calculateValue ()':
    fp_Run.cpp:3668: warning: `%c' yields only last 2 digits of year in
    some locales
    fp_Run.cpp: In method `bool
    fp_FieldDefaultDateNoTimeRun::calculateValue ()':
    fp_Run.cpp:3691: warning: `%x' yields only last 2 digits of year in
    some locales
    fp_Run.cpp: In method `fp_FieldFootnoteRefRun::fp_FieldFootnoteRefRun
    (fl_BlockLayout *, GR_Graphics *, unsigned int, unsigned int)':
    fp_Run.cpp:3965: warning: unused variable `bool bRes'
    fp_Run.cpp: In method `bool fp_FieldFootnoteRefRun::calculateValue ()':
    fp_Run.cpp:3976: warning: unused variable `bool bRes'
    fp_Run.cpp: In method
    `fp_FieldFootnoteAnchorRun::fp_FieldFootnoteAnchorRun (fl_BlockLayout
    *, GR_Graphics *, unsigned int, unsigned int)':
    fp_Run.cpp:3998: warning: unused variable `bool bRes'
    fp_Run.cpp: In method `bool fp_FieldFootnoteAnchorRun::calculateValue
    ()':
    fp_Run.cpp:4009: warning: unused variable `bool bRes'
    fp_Run.cpp: In method
    `fp_FieldEndnoteAnchorRun::fp_FieldEndnoteAnchorRun (fl_BlockLayout *,
    GR_Graphics *, unsigned int, unsigned int)':
    fp_Run.cpp:4033: warning: unused variable `bool bRes'
    fp_Run.cpp: In method `bool fp_FieldEndnoteAnchorRun::calculateValue
    ()':
    fp_Run.cpp:4045: warning: unused variable `bool bRes'
    fp_Run.cpp: In method `fp_FieldEndnoteRefRun::fp_FieldEndnoteRefRun
    (fl_BlockLayout *, GR_Graphics *, unsigned int, unsigned int)':
    fp_Run.cpp:4069: warning: unused variable `bool bRes'
    fp_Run.cpp: In method `bool fp_FieldEndnoteRefRun::calculateValue ()':
    fp_Run.cpp:4081: warning: unused variable `bool bRes'
    make[4]: *** [fp_Run.o] Error 1

    -- 
    Marc Maurer <j.m.maurer@student.utwente.nl>
    


    This archive was generated by hypermail 2.1.4 : Mon Mar 03 2003 - 04:25:28 EST