pass C compiler only options only to the C (and not C++) compiler
remove unused variable