Jaben,

 

I sent a patch a last year (25/06/2012) to fix the build issue below:

 

# ARM Toolchain:

/StdLib/LibC/Stdio/vfscanf.c(846,30) : error  #171: invalid type conversion

/StdLib/LibC/Stdio/vfscanf.c(850,11) : error  #41: expression must have
arithmetic or pointer type

/StdLib/LibC/Stdio/vfscanf.c: 2 warnings, 2 errors

 

# ARM GNU toolchain (GCC):

/StdLib/LibC/Stdio/vfscanf.c: In function '__svfscanf_unlocked':

/StdLib/LibC/Stdio/vfscanf.c:846:11: error: cannot convert to a pointer type

/StdLib/LibC/Stdio/vfscanf.c:850:14: error: invalid operands to binary +
(have 'va_list' and 'unsigned int')

 

# My suggested fix was this one:

 

--- a/StdLib/LibC/Stdio/vfscanf.c

+++ b/StdLib/LibC/Stdio/vfscanf.c

@@ -843,12 +843,8 @@ literal:

         goto match_failure;

       if ((flags & SUPPRESS) == 0) {

         if (flags & LONGDBL) {

-          long double **mp = (long double **)ap;

           long double res = strtold(buf, &p);

-

-          *(*mp) = res;

-          ap += sizeof(long double *);

-/*???*/   //*va_arg(ap, long double *) = res;

+          *va_arg(ap, long double *) = res;

         } else if (flags & LONG) {

           double res = strtod(buf, &p);

           *va_arg(ap, double *) = res;

--

 

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Olivier Martin <olivier.mar...@arm.com>

 

I though you answered me why this change could not be accepted. But I have
not found the email.

Any suggestion to fix my build issues?

 

Regards,

Olivier
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to