declare your structure outside of the function.
Code:#include <stdio.h> typedef struct{ int a, b, c; } test; void func(test, test); // parameter name warning occurs here int main() { test here, there; //......... func(here, there); return 0; } void func(test here, test there) // parse error occurs here { //........ }