-Wformat-nonliteral -Wcast-align -Wpointer-arith -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winline -Wundef -Wnested-externs -Wshadow -Wconversion -Wwrite-strings -Wno-conversion -Wextra -Wstrict-aliasing -Wcast-qual I've also had a go with Linus Torvalds' Sparse for static analysis. But, I think these kind of tools are more useful for big systems. share | improve this answer edited Jun 2 '10