Apache OpenOffice (AOO) Bugzilla – Issue 98271
Warning error in chart2 / svx/sdr/overlay/overlaymanager.hxx
Last modified: 2013-02-24 21:22:32 UTC
On Debian Lenny (i386) with gcc/4.3.2 building DEV300_m39 (--enable-werror): Making: ../../../unxlngi6.pro/slo/DragMethod_RotateDiagram.obj g++ -fmessage-length=0 -c -Os -fno-strict-aliasing -fvisibility=hidden -I. - I../../../unxlngi6.pro/inc/chcontroller -I../inc -I../../../source/inc - I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxlngi6.pro/inc -I. -I/home/chris/OOo/DEV300_m39/solver/300/unxlngi6.pro/inc/stl -I/home/chris/ OOo/DEV300_m39/solver/300/unxlngi6.pro/inc/external -I/home/chris/OOo/ DEV300_m39/solver/300/unxlngi6.pro/inc -I/home/chris/OOo/DEV300_m39/solenv/ unxlngi6/inc -I/home/chris/OOo/DEV300_m39/solenv/inc -I/home/chris/OOo/ DEV300_m39/res -I/home/chris/OOo/DEV300_m39/solver/300/unxlngi6.pro/inc/stl -I/ home/chris/OOo/DEV300_m39/solenv/inc/Xp31 -I/usr/lib/jvm/java-6-sun/include -I/ usr/lib/jvm/java-6-sun/include/linux -I/usr/lib/jvm/java-6-sun/include/ native_threads/include -I/usr/include -I/home/chris/OOo/DEV300_m39/solver/300/ unxlngi6.pro/inc/offuh -I. -I../../../res -I. -pipe -mtune=pentiumpro - fvisibility-inlines-hidden -Wall -Wextra -Wendif-labels -Wshadow -Wno-ctor-dtor- privacy -Wno-non-virtual-dtor -Werror -fpic -DLINUX -DUNX -DVCL -DGCC - DC341 -DINTEL -DCVER=C341 -DNPTL -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT - DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 - DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 - DGXX_INCLUDE_PATH=/usr/include/c++/4.3 -DSUPD=300 -DPRODUCT -DNDEBUG - DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DSHAREDLIB - D_DLL_ -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON -o ../../../ unxlngi6.pro/slo/DragMethod_RotateDiagram.o /home/chris/OOo/DEV300_m39/chart2/ source/controller/main/DragMethod_RotateDiagram.cxx cc1plus: warnings being treated as errors In file included from /home/chris/OOo/DEV300_m39/chart2/source/controller/main/ DragMethod_RotateDiagram.cxx:43: /home/chris/OOo/DEV300_m39/solver/300/unxlngi6.pro/inc/svx/sdr/overlay/ overlaymanager.hxx:100: error: type qualifiers ignored on function return type dmake: Error code 1, while making '../../../unxlngi6.pro/slo/ DragMethod_RotateDiagram.obj' ERROR: Error 65280 occurred while making /home/chris/OOo/DEV300_m39/chart2/ source/controller/main
@Iha: pls have a look
This seems to be a problem with new method OverlayManager::getDiscreteOne. @Armin, please have a look.
AW: Yes, looks as if debian gcc/4.3.2 does not like const returns by value. It's not needed and only of philosophical use, so i will just remove it.
AW: Test building svx and chart2. Function prototype changes, so incompatible from svx. Adding to CWS aw064...
AW: Committed, checked, done.
AW->IHA: Please review that OverlayManager::getDiscreteOne in svx has no longer a const return value in the CWS.
Verified, that OverlayManager::getDiscreteOne has no longer a const return value in the CWS aw064.
seen in OOO310_m9 and DEV300_m45