This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/14557] va_list is automatically taken address-of when passed as argument


------- Additional Comments From zack at codesourcery dot com  2004-03-13 19:50 -------
Subject: Re:  va_list is automatically taken address-of
 when passed as argument


&ap should always work; taking the address of an array produces a
pointer to the array, which has a different type but the same value as
the pointer to the first element that you get if you don't take the
address.  You have to write *ap in the callee, is all.

As far as I can see the original example is strictly conforming and
the warning should not be issued.

zw


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14557


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]