MISRAC2012-Rule-17.1
In this section:
Synopsis
(Required) The features of <stdarg.h> shall not be used
Enabled by default
Yes
Severity/Certainty
Low/Medium

Full description
Inclusion of the stdarg header file was detected.
Coding standards
- MISRA C:2012 Rule-17.1
(Required) The features of <stdarg.h> shall not be used
Code examples
The following code example fails the check and will give a warning:
#include <stdlib.h>
#include <stdarg.h>
void example(int a, ...) {
va_list vl;
va_list v2;
int val;
va_start(vl, a);
va_copy(vl, v2);
val=va_arg(vl, int);
va_end(vl);
}
The following code example passes the check and will not give a warning about this issue:
#include <stdlib.h>
int example(void) {
return EXIT_SUCCESS;
}