Quantcast
Channel: How to remove this warning: second parameter of ‘va_start’ not last named argument? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by user9876 for How to remove this warning: second parameter of ‘va_start’ not last named argument?

$
0
0
second parameter of ‘va_start’ not last named argument

What does it means and how to remove it?

Your function has named parameters parent, fmt and size. The C spec says you have to always pass the last named parameter to va_start, for compatibility with older compilers. So you must pass size, not fmt.

(But with a modern compiler, it might work anyway)


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>