GNOME Bugzilla – Bug 304701
1 error detected in the compilation of "jpeg-save.c".
Last modified: 2008-01-15 14:03:49 UTC
Distribution/Version: 6.5.27 irix 6.5.27, mipspro 7.42. gimp 2.3.0. ------------ cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0 -I/usr/nekoware/include -I/usr/nekoware/include/freetype2 -I/usr/local/include/gtk-2.0 -I/usr/local/include/atk-1.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/gimp/include -I/usr/local/include -I/usr/local2/include -I/usr/nekoware/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -O3 -mips4 -OPT:IEEE_arithmetic=3 -lfastm -lm -c `test -f 'jpeg-save.c' || echo './'`jpeg-save.c cc-1047 cc: WARNING File = /usr/nekoware/include/jconfig.h, Line = 12 Macro "HAVE_STDLIB_H" (declared at line 156 of "../../config.h") has an incompatible redefinition. #define HAVE_STDLIB_H ^ cc-3316 cc: ERROR File = jpeg-save.c, Line = 498 The expression must be a pointer to a complete object type. xmp_data = gimp_parasite_data (parasite) + 10; ^ cc-1164 cc: WARNING File = jpeg-save.c, Line = 507 Argument of type "gchar *" is incompatible with parameter of type "const JOCTET *". jpeg_write_marker (&cinfo, JPEG_APP0 + 1, app_block, ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 702 An enumerated type is mixed with another type. NULL, 0, ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 806 An enumerated type is mixed with another type. GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0); ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 818 An enumerated type is mixed with another type. gtk_table_attach (GTK_TABLE (table), toggle, 2, 4, 1, 2, GTK_FILL, 0, 0, 0); ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 832 An enumerated type is mixed with another type. gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 0, 1, GTK_FILL, 0, 0, 0); ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 845 An enumerated type is mixed with another type. gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 1, 2, GTK_FILL, 0, 0, 0); ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 859 An enumerated type is mixed with another type. gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 2, 3, GTK_FILL, 0, 0, 0); ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 906 An enumerated type is mixed with another type. gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 5, 6, GTK_FILL, 0, 0, 0); ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 930 An enumerated type is mixed with another type. GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0); ^ cc-1185 cc: WARNING File = jpeg-save.c, Line = 957 An enumerated type is mixed with another type. GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0); ^ 1 error detected in the compilation of "jpeg-save.c". gmake[3]: *** [jpeg-save.o] Error 2
Uh, doing pointer arithmetic on void pointers is indeed evil. But this is still not a blocker but only a minor problem. Thanks for reporting it anyway.
ah, sorry. thought a compilation error was declared as a blocker...
It is, arithmetic on void * is a gccism. It would be helpful to report only the errors you get in the future, since a lot of the warnings are supruious.
2005-05-19 Manish Singh <yosh@gimp.org> * plug-ins/jpeg/jpeg-save.c (save_image): don't do pointer arithmetic with void *. Fixes bug #304701.