This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
warnings about empty function bodies.
- From: "Ramana Radhakrishnan" <ramana dot r at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 27 Jun 2008 16:53:49 +0100
- Subject: warnings about empty function bodies.
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