Enable warning Wundef
authorLukas Slebodnik <lslebodn@redhat.com>
Fri, 21 Feb 2014 10:58:03 +0000 (11:58 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 21 Feb 2014 15:30:14 +0000 (16:30 +0100)
commita1e707b30ad819b15445d785819516ad58da4aa2
tree217d041fee5b4f8450a494dc039b129c7f85159b
parent1e56a5646d30594e3174a9811d5b1bb7bd4bd77d
Enable warning Wundef

It is better to use "#ifdef" for testing macros instead of "#if"
In header file, "#ifdef DOXYGEN" was used 30 times and "#if DOXYGEN"
23 times. This patch makes it consistent and enable warning Wundef to prevent
this kind of issues.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
cmake/Modules/DefineCompilerFlags.cmake
doc/index.html
example/allocate_module.c
example/assert_module.c
example/calculator.c
include/cmocka.h
src/cmocka.c