X-POP3-Rcpt: mlehmann AT universe DOT sgh-net DOT de Message-ID: <19980117123359.46841@prtr-13.ucsc.edu> 17 Jan 1998 12:33:59 -0800 From: Toshio Kuratomi To: Mohan Khurana , beastium-list AT Desk DOT nl Subject: Re: Warnings - too many of them. References: <34C0EBF1 DOT F361B093 AT stealth DOT net> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-md5; boundary=9amGYk9869ThD9tj X-Mailer: Mutt 0.84 In-Reply-To: <34C0EBF1.F361B093@stealth.net>; from Mohan Khurana on Sat, Jan 17, 1998 at 12:35:46PM -0500 Sender: Marc Lehmann Status: RO X-Status: A Content-Length: 2622 Lines: 84 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii I'm not sure about the second bug, but the first looks like normal C to me. I believe that the new revised C standard doesn't like implicitly assigning int to functions. So the new egcs compiler is warning that this is now non-standard behavior. I haven't checked recently to verify though. -Toshio On Sat, Jan 17, 1998 at 12:35:46PM -0500, Mohan Khurana set free these words: > 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' [snip] > 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 ). 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 -- badger \\ "What's all this? What's all this?" @prtr-13 \\ -Mr. Banks, Mary Poppins ..ucsc.edu \\=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ --9amGYk9869ThD9tj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBNMEVt2I4kZK9uLMpAQFThQP/alAO/rZNccqYEaxqFKsat1aJ/lo7Ikd4 XM2TdxAlB1JgbB8unxVnUqgSxa9KfU4ZXFA3ALMWbdak28UcNuKN4MnZdw0ya59A EL0iBVtpQUpdToxDsugtdjw1DD3j8M2nLLisq6smdhqWH7gj4KfNbWUtarcWA8LB wM5PncX40xs= =/DgJ -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--