cwarn-mode is a minor mode that can highlight a few dangerous typos in C (or derived languages).
cwarn.el comes installed on Emacs.
By default it highlights:
if (x == y);
if (x = y) {
void funct(string &p) {
ProgrammingModes