Hello,
I used the code below and I am able to compile the project. Please check and let me know, if it works on your side.
#include <stdarg.h>
void printargs(int arg1, ...);
void printargs(int arg1, ...)
{
va_list ap;
int i;
va_start(ap, arg1);
for (i = arg1; i >= 0; i = va_arg(ap, int))
{
}
va_end(ap);
}
int main(void) {
volatile int i = 0;
printargs(1, -1);
/* Loop forever */
for (;;) {
i++;
}
}
Regards,
Martin
Hello,
Thank you for your answer.I According to your demo and Building the project.The compiled results are as follows:
Hello,
this is strange. Could you please send me your project? Maybe you have different project settings. I need to compare with my project.
Regards,
Martin