cmake: removed useless if
cmake: apply some warnings to C-specific code
XXX