MISRA Discussion Forums

Full Version: 8.3 and parameter name omitted.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Would the following examples be compliant with rule #8.3?
Code:
-- in t1.h
extern int foo(int);

-- t2.c
#include "t1.h"

int foo(int value) {  // here(parameter name do not match)
}
The extern declaration of foo is not compliant with rule 8.2, which requires function declarations to have named parameters.

The MISRA-C working group is currently considering whether rule 8.3 includes the case where the declaration has no parameter name and definition does have a parameter name.