This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning for C Parameter Name Mismatch
On Sat, 9 Mar 2019 at 17:51, Joel Sherrill wrote:
> And not checking system headers is reasonable in general. For RTEMS though, we are implementing those system headers and do follow the names in the standards for parameter names in the implementation.
Using exactly the names from the standard is non-conforming, because
they aren't reserved names and so this valid code would fail to
compile:
#define format 1
#include <stdio.h>
int main() { printf("%d\n", format); }