This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE:1.3.22,w2k: conflicting types after mingw runtime update (to 3.0-1)
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: cygwin at cygwin dot com, alexander dot mader at niles dot de
- Date: Thu, 8 May 2003 21:51:14 +1000 (EST)
- Subject: RE:1.3.22,w2k: conflicting types after mingw runtime update (to 3.0-1)
From: "Mader, Alexander"
> Hallo,
>
> today I ran an update which happened to affect mingw runtime. The result is a
bunch of warnings with gcc-2 but not with gcc:
>
>
> mader@L201$ gcc -c -W -Wall -std=c9x -pedantic -fpack-struct
> -mrtd -mno-cygwin EinMitten.c
^^^^^^
>
>
> mader@L201$ gcc-2 -c -W -Wall -std=c9x -pedantic -fpack-struct
> -mrtd -mno-cygwin EinMitten.c
> In file included from EinMitten.c:5:
> /usr/include/mingw/stdlib.h:383: warning: conflicting types for
> built-in function `abs'
>
>
The warning is harmless. On 3.x the #pragma gcc system_header disables
it. Read more at GNATS database
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc
in PR9601
[i386] -mrtd switch/stdcall attribute raises warnings for __builtin functions
The __cdecl attribute in headers cause the warning when used with -mrtd. If
the __cdecl qualifiers were not in headers, you would have even bigger problems
with -mrtd, since the libarary functions would be treated as stdcall as well.
Danny
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/