fix C compiler warnings about unused parameters