Red Hat Bugzilla – Bug 57644
please fix warnings in XPM .h files
Last modified: 2007-04-18 12:38:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-13smp i686; Nav)
Description of problem:
To ensure maximal ANSI C compliance, I always compile with these
gcc -Wall -Wstrict-prototypes -Wnested-externs -Wno-format
I get some warnings that are not my fault; it would be nice if
you could fix these in your header files. The problem here is
that some of your declarations are of the form "foo()" instead
of the form "foo(void)".
/usr/X11R6/include/X11/xpm.h:395: warning: function declaration isn't a
/usr/X11R6/include/X11/xpm.h:403: warning: function declaration isn't a
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.compile against XFree86-devel-4.1.0-3 with those options
These and many numerous other similar compile time warnings that come
from both compiling XFree86 itself, and also from building various
X software linking to X, are generic XFree86 issues, and not specific
to the Red Hat distribution.
The fastest way to see these types of things fixed, is to report them
directly upstream to XFree86 via their bug report tool at:
Also, the libXpm is maintained separately from XFree86 itself I believe,
and merged from time to time, so it might even be faster to have them
fix it there, although I don't know where the libXpm site is.
Although I usually leave this sort of thing to upstream maintenance,
I do occasionally clean up warnings in X, so I'll leave the bug open.
I still recommend reporting it upstream though.