From 7850efefc89de4b32de3d84a2568878f7b9ec3b9 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 18 Aug 2020 22:02:37 +0200 Subject: [PATCH] umm: remove warnings ISO C forbids an empty translation unit --- armsrc/umm_info.c | 2 +- armsrc/umm_integrity.c | 2 +- armsrc/umm_poison.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/armsrc/umm_info.c b/armsrc/umm_info.c index e93122e94..42a22c415 100644 --- a/armsrc/umm_info.c +++ b/armsrc/umm_info.c @@ -1,10 +1,10 @@ -#ifdef UMM_INFO #include #include #include #include +#ifdef UMM_INFO /* ---------------------------------------------------------------------------- * One of the coolest things about this little library is that it's VERY diff --git a/armsrc/umm_integrity.c b/armsrc/umm_integrity.c index 7cb8ed6fe..c998efcf9 100644 --- a/armsrc/umm_integrity.c +++ b/armsrc/umm_integrity.c @@ -1,9 +1,9 @@ /* integrity check (UMM_INTEGRITY_CHECK) {{{ */ -#ifdef UMM_INTEGRITY_CHECK #include #include +#ifdef UMM_INTEGRITY_CHECK /* * Perform integrity check of the whole heap data. Returns 1 in case of * success, 0 otherwise. diff --git a/armsrc/umm_poison.c b/armsrc/umm_poison.c index cb0160bf8..c2fd6a899 100644 --- a/armsrc/umm_poison.c +++ b/armsrc/umm_poison.c @@ -1,10 +1,10 @@ /* poisoning (UMM_POISON_CHECK) {{{ */ -#if defined(UMM_POISON_CHECK) -#define POISON_BYTE (0xa5) #include #include #include +#if defined(UMM_POISON_CHECK) +#define POISON_BYTE (0xa5) /* * Yields a size of the poison for the block of size `s`.