diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-02-21 11:58:03 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-02-21 16:30:14 +0100 |
commit | a1e707b30ad819b15445d785819516ad58da4aa2 (patch) | |
tree | 217d041fee5b4f8450a494dc039b129c7f85159b /example/allocate_module.c | |
parent | 1e56a5646d30594e3174a9811d5b1bb7bd4bd77d (diff) | |
download | cmocka-a1e707b30ad819b15445d785819516ad58da4aa2.tar.gz cmocka-a1e707b30ad819b15445d785819516ad58da4aa2.tar.bz2 cmocka-a1e707b30ad819b15445d785819516ad58da4aa2.zip |
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>
Diffstat (limited to 'example/allocate_module.c')
-rw-r--r-- | example/allocate_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/allocate_module.c b/example/allocate_module.c index 295e10e..3c4fb49 100644 --- a/example/allocate_module.c +++ b/example/allocate_module.c @@ -22,7 +22,7 @@ #include <sys/types.h> #include <stdlib.h> -#if UNIT_TESTING +#ifdef UNIT_TESTING extern void* _test_malloc(const size_t size, const char* file, const int line); extern void* _test_calloc(const size_t number_of_elements, const size_t size, const char* file, const int line); |