Article View: gnu.gcc.help
Article #50116quiet conversion to lower precision?
From: Marty Leisner
Date: Sun, 14 Nov 1993 19:35
Date: Sun, 14 Nov 1993 19:35
34 lines
1393 bytes
1393 bytes
I have a simple program. I think I should be able to trigger a warning
to issue a complaint...
1
2 void foo(char c)
3 {
4 }
5
6 void bar(void)
7 {
8 foo(0x1234);
9 }
10
Aztec C on Ms/dos say:
E:\>c foo.c
cc foo.c
Aztec C86 Pass1 v4.10d 10-25-88 (C) 1982-1988 by Manx Software Systems, Inc.
foo(0x1234);
^
foo.c:8: WARNING 4: argument type mismatch:
Aztec C86 Pass2 v4.10d 10-10-88 (C) 1982-1988 by Manx Software Systems, Inc.
Aztec 8086 Assembler v4.10d 10-6-88
which I find reasonable.
I'm running gcc 2.4.5 and don't see a way to trigger this warning
(I liked at the manual on the -W options...)
marty
leisner@sdsp.mc.xerox.com
Technical Details
Message-ID:
<9311141929.AA14540@draco.mc.xerox.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!sdsp.mc.xerox.COM!leisnerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,3ed4d4b917f3aecd,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-14 11:41:10 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!sdsp.mc.xerox.COM!leisner From: leisner@sdsp.mc.xerox.COM (Marty Leisner) Newsgroups: gnu.gcc.help Subject: quiet conversion to lower precision? Date: 14 Nov 1993 14:35:43 -0500 Organization: GNUs Not Usenet Lines: 36 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9311141929.AA14540@draco.mc.xerox.com>