Compiler warnings from 1.2.8



This is not a proper declaration:

typedef void (*GtkSignalFunc)      ();

It should be

typedef void (*GtkSignalFunc)      (void);

Likewise in gtkitemfactory.h


$ gtk-config --version
1.2.8

gcc -DPACKAGE=\"print\" -DVERSION=\"3.1.9\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void  -I. -I.  -I.                              -I/usr/local/Libraries///glib/include -I/usr/local/Headers// -I/usr/X11R6/include
                                -I/usr/local/Headers// -DLOCALEDIR=\"""\"      -Wall -Wcast-align -Wstrict-prototypes           -DLP_COMMAND=\"/usr/bin/lp\"   -DLPSTAT_COMMAND=\"/usr/bin/lpstat\"                                     -DLPR_COMMAND=\"/usr/bin/lpr\"                                  -DLPC_COMMAND=\"/usr/sbin/lpc\"   -g -O2 -c gtk_main_window.c
In file included from /usr/local/Headers//gtk/gtkarg.h:31,
                 from /usr/local/Headers//gtk/gtkobject.h:31,
                 from /usr/local/Headers//gtk/gtkaccelgroup.h:35,
                 from /usr/local/Headers//gtk/gtk.h:32,
                 from print_gimp.h:32,
                 from gtk_main_window.c:32:
/usr/local/Headers//gtk/gtktypeutils.h:155: warning: function declaration isn't a prototype
In file included from /usr/local/Headers//gtk/gtk.h:80,
                 from print_gimp.h:32,
                 from gtk_main_window.c:32:
/usr/local/Headers//gtk/gtkitemfactory.h:48: warning: function declaration isn't a prototype

-- 
Robert Krawitz <rlk@alum.mit.edu>      http://www.tiac.net/users/rlk/

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- mail lpf@uunet.uu.net
Project lead for The Gimp Print --  http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]