From: Jim Wilson <wilson@cygnus.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] gcc issue ?
Date: Wed, 13 Jun 2001 00:14:31 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005723@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005722@msgid-missing>
>cval = va_arg(args, char);
This isn't valid ISO C. You must use promoted types when calling va_args,
and hence you must use int here, just like the error message says.
Older versions of gcc, and many other compilers tend to accept this, with
various results, e.g. sometimes it works, sometimes it doesn't. New versions
of gcc always give an error at compile time.
>Following program fails compilation on linux ia64 os, but works on
>other os's.
This isn't IA-64 specific behaviour. If you use a new gcc, it will give this
same error on all systems.
Jim
prev parent reply other threads:[~2001-06-13 0:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-12 23:39 [Linux-ia64] gcc issue ? Ram Menon
2001-06-13 0:14 ` Jim Wilson [this message]
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=marc-linux-ia64-105590693005723@msgid-missing \
--to=wilson@cygnus.com \
--cc=linux-ia64@vger.kernel.org \
/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