After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 304701 - 1 error detected in the compilation of "jpeg-save.c".
1 error detected in the compilation of "jpeg-save.c".
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.3.x
Other IRIX
: Normal minor
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-05-18 20:59 UTC by g.fischer@ah-online.com
Modified: 2008-01-15 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description g.fischer@ah-online.com 2005-05-18 20:59:19 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
Comment 1 Sven Neumann 2005-05-19 21:22:57 UTC
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.
Comment 2 g.fischer@ah-online.com 2005-05-19 23:41:31 UTC
ah, sorry.
thought a compilation error was declared as a blocker...
Comment 3 Manish Singh 2005-05-19 23:59:48 UTC
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.
Comment 4 Manish Singh 2005-05-20 00:09:06 UTC
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.