Mail Archives: pgcc/1998/01/17/12:35:46
I am NOT on the mailing list.
[root AT electrify 12:12:02pm /usr/doc/pentium-gcc] % gcc -v
Reading specs from
/usr/lib/gcc-lib/i586-pc-linux-gnulibc1/pgcc-2.90.23/specs
gcc version pgcc-2.90.23 980102 (egcs-1.0.1 release)
The problems occur with both gcc 2.8 and the pgcc version specified
above.
Problem:
Here is a list of all the warnings/errors:
In file included from ng.h:25,
from main.c:3:
/usr/include/X11/Xlib.h:2072: warning: type defaults to `int' in
declaration of `XSetTransientForHint'
/usr/include/X11/Xlib.h:2080: warning: type defaults to `int' in
declaration of `XActivateScreenSaver'
/usr/include/X11/Xlib.h:2087: warning: type defaults to `int' in
declaration of `XAddHost'
/usr/include/X11/Xlib.h:2095: warning: type defaults to `int' in
declaration of `XAddHosts'
/usr/include/X11/Xlib.h:2102: warning: type defaults to `int' in
declaration of `XAddToExtensionList'
/usr/include/X11/Xlib.h:2109: warning: type defaults to `int' in
declaration of `XAddToSaveSet'
/usr/include/X11/Xlib.h:2163: warning: type defaults to `int' in
declaration of `XAllowEvents'
/usr/include/X11/Xlib.h:2169: warning: type defaults to `int' in
declaration of `XAutoRepeatOff'
/usr/include/X11/Xlib.h:2175: warning: type defaults to `int' in
declaration of `XAutoRepeatOn'
/usr/include/X11/Xlib.h:2182: warning: type defaults to `int' in
declaration of `XBell'
/usr/include/X11/Xlib.h:2215: warning: type defaults to `int' in
declaration of `XChangeActivePointerGrab'
/usr/include/X11/Xlib.h:2224: warning: type defaults to `int' in
declaration of `XChangeGC'
/usr/include/X11/Xlib.h:2232: warning: type defaults to `int' in
declaration of `XChangeKeyboardControl'
/usr/include/X11/Xlib.h:2242: warning: type defaults to `int' in
declaration of `XChangeKeyboardMapping'
/usr/include/X11/Xlib.h:2253: warning: type defaults to `int' in
declaration of `XChangePointerControl'
/usr/include/X11/Xlib.h:2266: warning: type defaults to `int' in
declaration of `XChangeProperty'
/usr/include/X11/Xlib.h:2274: warning: type defaults to `int' in
declaration of
`XChangeSaveSet'
/usr/include/X11/Xlib.h:2283: warning: type defaults to `int' in
declaration of `XChangeWindowAttributes'
I could paste more, but I don't want to annoy everyone on the list.
Let's see one part of Xlib.h:
extern XChangePointerControl(
#if NeedFunctionPrototypes
Display* /* display */,
Bool /* do_accel */,
Bool /* do_threshold */,
int /* accel_numerator */,
int /* accel_denominator */,
int /* threshold */
#endif
);
Also, I found another problem, I haven't been able to completely isolate
it, but I thought I should say it here anyway since it is a potential
bug.
I have -I./ as an option passed to gcc. gcc was complaining that it
couldn't find the file that was being included from the .c file (it was
declared #include <something.h>). I changed it to -I. and it worked. I
then put -I./ as the very first option passed to gcc and it worked.
Maybe it's just my imagination, but I'm pretty sure that's what
happened.
Thanks for any help.
Mohan Khurana
- Raw text -