warnings about empty function bodies.

Ramana Radhakrishnan ramana.r@gmail.com
Fri Jun 27 15:54:00 GMT 2008


Hi,

Is there a warning flag to print out warning messages in case GCC
compiles a function with an empty body ? I tried -Wextra and
-Wempty-body but that didn't seem to work. The doco though for
-Wempty-body suggests that this is only for empty if or for blocks.

cheers
Ramana

-- 
Ramana Radhakrishnan



More information about the Gcc-help mailing list