First of all your code should be generating a warning (at level 3) so you should be able to see that something is wrong after compilation from that. If you want an error:
You can add #pragma warning (error : 4013)
in your a.c
file.
Alternatively add /we4013
to the additional options under Configuration properties->C/C++->Command Line
This treats the warning generated by your code as an error