From: Steve Dum <steve_dum@mentorg.com>
To: gnu-win32@cygnus.com
Cc: steve_dum@mentorg.com
Subject: Re: A TINY BUG
Date: Mon, 06 Oct 1997 12:27:00 -0000 [thread overview]
Message-ID: <199710061927.MAA18083@sdum.wv.mentorg.com> (raw)
In-Reply-To: <34391696.27758E19@softway.com>
In message < 34391696.27758E19@softway.com >you write:
>> I have found that the following bad code gives "exception" at run
>> time instead of error message at compilation time (b18 Win95):
>>
>> #include <stdio.h>
>> main(){
>> printf("%s\n",sizeof(long));
>> }
>
>No compiler will detect this error at compile-time. The prototype for
>printf is (char *, ...); that is, no specific type information for
Well, actually, if you compile this with a -Wall gcc will diagnose it, and
emit the warning
f.c:3: warning: format argument is not a pointer (arg 2)
steve
--------------
Stephen Dum steve_dum@mentorg.com (503)-685-7743
Mentor Graphics Corp. 8005 S.W. Boeckman Rd. Wilsonville, Or 97070-7777
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
next prev parent reply other threads:[~1997-10-06 12:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-06 1:19 Tage Westlund
1997-10-06 9:53 ` Jason Zions
1997-10-06 12:27 ` Steve Dum [this message]
1997-10-06 12:40 ` Matthew Moskewicz
1997-10-06 14:27 ` Marty Leisner
1997-10-06 17:13 ` Steve Tynor
1997-10-06 18:01 ` Chris Faylor
1997-10-06 15:47 ` Charles Curley
1997-10-07 6:18 ` Jon Thackray
1997-10-06 9:16 David C. Hoos, Sr.
1997-10-06 17:13 ` $Bill Luebkert
1997-10-07 0:12 Pascal OBRY
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199710061927.MAA18083@sdum.wv.mentorg.com \
--to=steve_dum@mentorg.com \
--cc=gnu-win32@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).