gcc 2.96 has trouble with the test inset too. I am sure this is a bug but not
sure what the correct fix actually is, as ignoring const is not nescarily
safe. Could someone who knows the coed better determine whether a cast,
prototype twiddle or massive code change is appropiate here?
<lots of stuff snipped>
make[3]: Entering directory `/usr/src/X11/lyx-devel/src/insets'
/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../src
-I./../ -g -O -fno-rtti -fno-exceptions -W -Wall -Wconversion -c
insettext.C
rm -f .libs/insettext.lo
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -g -O -fno-rtti
-fno-exceptions -W -Wall -Wconversion -Wp,-MD,.deps/insettext.pp -c
insettext.C -fPIC -DPIC -o .libs/insettext.lo
insettext.C: In method `void InsetText::computeTextRows (Painter &,
insettext.C: float) const':
insettext.C:1271: warning: passing `float' for argument 3 of
insettext.C:1271: warning: `InsetText::getMaxTextWidth (Painter &,
insettext.C:1271: warning: const UpdatableInset *, int) const'
insettext.C:1310: cannot convert `const InsetText *const' to `Inset *'
insettext.C:1310: for argument `1' to `Inset::setOwner (Inset *)'
<make declaring failure snipped>
--
Duncan (-:
"software industry, the: unique industry where selling substandard goods is
legal and you can charge extra for fixing the problems."