Tim, All,
Building kipi-plugins today I received the following:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../..
-I../../kipi-plugins/common/include -I/opt/trinity/include
-I/opt/trinity/include -I/opt/trinity/include -I/opt/trinity/include
-I/opt/tqt3/include -I. -include tqt.h -I/opt/trinity/include/tde
-DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W
-Wpointer-arith -fno-builtin -g3 -fno-inline -march=i686 -mtune=generic -O2
-pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -MT rawdecodingiface.lo -MD -MP -MF
.deps/rawdecodingiface.Tpo -c rawdecodingiface.cpp -fPIC -DPIC -o
.libs/rawdecodingiface.o
rawdecodingiface.cpp: In member function 'bool
KIPIRawConverterPlugin::RawDecodingIface::loadedFromDcraw(const TQString&,
TQString&, KIPIRawConverterPlugin::SaveSettingsWidget::OutputFormat, const
TQByteArray&, int, int)':
rawdecodingiface.cpp:302:76: error: invalid conversion from 'char*' to
'png_const_bytep {aka const unsigned char*}' [-fpermissive]
In file included from rawdecodingiface.h:35:0,
from rawdecodingiface.cpp:65:
/usr/include/png.h:2276:1: error: initializing argument 5 of 'void
png_set_iCCP(png_structp, png_infop, png_const_charp, int, png_const_bytep,
png_uint_32)' [-fpermissive]
rawdecodingiface.cpp:309:25: warning: deprecated conversion from string
constant to 'png_charp {aka char*}' [-Wwrite-strings]
rawdecodingiface.cpp:320:100: warning: deprecated conversion from string
constant to 'char*' [-Wwrite-strings]
rawdecodingiface.cpp:324:92: warning: deprecated conversion from string
constant to 'char*' [-Wwrite-strings]
rawdecodingiface.cpp: In member function 'long int
KIPIRawConverterPlugin::RawDecodingIface::formatStringList(char*, size_t,
const char*, va_list)':
rawdecodingiface.cpp:660:55: warning: function might be possible candidate for
'gnu_printf' format attribute [-Wmissing-format-attribute]
rawdecodingiface.cpp: In member function 'bool
KIPIRawConverterPlugin::RawDecodingIface::loadedFromDcraw(const TQString&,
TQString&, KIPIRawConverterPlugin::SaveSettingsWidget::OutputFormat, const
TQByteArray&, int, int)':
rawdecodingiface.cpp:481:59: warning: ignoring return value of 'size_t
fwrite(const void*, size_t, size_t, FILE*)', declared with attribute
warn_unused_result [-Wunused-result]
I was thinking Darrell already had a patch for this that allowed it to
build w/o -fpermissive. This might just be one of the -fpermissive issues that
needs fixing. Anybody know if a patch exists for this on gcc 4.7?
--
David C. Rankin, J.D.,P.E.