Subject: bin/6895: X11 header files have incomplete prototypes
To: None <gnats-bugs@gnats.netbsd.org>
From: No Spam <sopwith!nospam@parsely.rain.com>
List: netbsd-bugs
Date: 01/28/1999 06:51:02
>Number: 6895
>Category: bin
>Synopsis: X11 header files have incomplete prototypes
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 27 23:05:00 1999
>Last-Modified:
>Originator: Snoopy
>Organization:
>Release: 1.3.3
>Environment:
System: NetBSD sopwith 1.3.3 NetBSD 1.3.3 (GENERIC) #7: Fri Dec 11 21:32:58 PST 1998 ross@zeta:/usr/src/sys/arch/alpha/compile/GENERIC alpha
>Description:
Some X11 header files have incomplete prototypes.
>How-To-Repeat:
To aid in porting code to LP64, I created a wrapper for cc/gcc and put its
bin directory first in my PATH. This saves a lot of hassling with configure, Makefiles, etc.
/usr/bin/gcc -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wuninitialized -Wimplicit -Wreturn-type -Wformat -D__STDC__=1 $@ -O2
Compile something that includes X11 header files, and observe the complaints.
A few examples:
/usr/X11R6/include/X11/Xauth.h:61: warning: function declaration isn't a prototype
/usr/X11R6/include/X11/xpm.h:395: warning: function declaration isn't a prototype
/usr/X11R6/include/X11/xpm.h:403: warning: function declaration isn't a prototype
/usr/X11R6/include/X11/Xmu/Editres.h:34: warning: function declaration isn't a prototype
>Fix:
Prototypes in X11 header files should be complete.
>Audit-Trail:
>Unformatted: