-Wimplicit_int & X11 headers

Jeffrey A Law law@cygnus.com
Wed Apr 22 22:14:00 GMT 1998

  In message < 199804230217.EAA02439@quatramaran.ens.fr >you write:
  > I don't know if this was mentionned already, but compiling X11
  > programs with -Wall gives lots of spurious warnings.
  > The trouble is that many functions in X11 don't mention a return
  > type, e.g.,  in Xlib.h,
  > extern XAddHost(
  > /* ... */
  > );
  > so that activating -Wimplicit-int with -Wall will give rise to a
  > full load of warnings.
Well, they are valid warnings -- the X11 header files are bogus.

I don't know if it's possible, but suppressing the warning if the
decl is from a system header file might be the best approach.

fixincludes is for more serious issues than this.


More information about the Gcc-bugs mailing list