This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11464] vararg function assembled into int $0x5
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2003 12:47:37 -0000
- Subject: [Bug c/11464] vararg function assembled into int $0x5
- References: <20030708123556.11464.kostya@tessart.kiev.ua>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11464
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-08 12:47 -------
unsigned short's are passed as unsigned int's through a vararg function. Did you see the warning?
test3.c:10: warning: `mode_t' is promoted to `int' when passed through `...'
test3.c:10: warning: (so you should pass `int' not `mode_t' to `va_arg')
Marking this as invalid.