Issue 98271 - Warning error in chart2 / svx/sdr/overlay/overlaymanager.hxx
Summary: Warning error in chart2 / svx/sdr/overlay/overlaymanager.hxx
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: chart (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: IngridvdM
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-20 09:34 UTC by christian.lins
Modified: 2013-02-24 21:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description christian.lins 2009-01-20 09:34:01 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
Comment 1 kla 2009-01-20 09:47:27 UTC
@Iha: pls have a look
Comment 2 IngridvdM 2009-01-21 15:39:01 UTC
This seems to be a problem with new method OverlayManager::getDiscreteOne.
@Armin, please have a look.
Comment 3 Armin Le Grand 2009-02-02 10:18:11 UTC
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.
Comment 4 Armin Le Grand 2009-02-02 10:52:16 UTC
AW: Test building svx and chart2. Function prototype changes, so incompatible
from svx. Adding to CWS aw064...
Comment 5 Armin Le Grand 2009-02-02 11:25:00 UTC
AW: Committed, checked, done.
Comment 6 Armin Le Grand 2009-02-11 11:36:13 UTC
AW->IHA: Please review that OverlayManager::getDiscreteOne in svx has no longer
a const return value in the CWS.
Comment 7 IngridvdM 2009-02-11 12:06:09 UTC
Verified, that OverlayManager::getDiscreteOne has no longer
a const return value in the CWS aw064.
Comment 8 dtardon 2009-04-09 08:14:45 UTC
seen in OOO310_m9 and DEV300_m45