Is there a way to "compile" code with GCC while only actually emitting errors, i.e. get the errors/warnings from compiling but not actually compile and creating a file? I ask because I want to check a very large codebase for errors without having to actually compile. It will easily compile without problems, but my bottleneck in the compiling time is the hard drive. I don't actually need the compiled object files, just the errors.
If nothing else, I suspect that you could direct the output to /dev/null so that writing the output file never takes place. Thoughts?