umm: remove warnings ISO C forbids an empty translation unit

This commit is contained in:
Philippe Teuwen 2020-08-18 22:02:37 +02:00
commit 7850efefc8
3 changed files with 4 additions and 4 deletions

View file

@ -1,10 +1,10 @@
#ifdef UMM_INFO
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <stdbool.h> #include <stdbool.h>
#include <math.h> #include <math.h>
#ifdef UMM_INFO
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* One of the coolest things about this little library is that it's VERY * One of the coolest things about this little library is that it's VERY

View file

@ -1,9 +1,9 @@
/* integrity check (UMM_INTEGRITY_CHECK) {{{ */ /* integrity check (UMM_INTEGRITY_CHECK) {{{ */
#ifdef UMM_INTEGRITY_CHECK
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#ifdef UMM_INTEGRITY_CHECK
/* /*
* Perform integrity check of the whole heap data. Returns 1 in case of * Perform integrity check of the whole heap data. Returns 1 in case of
* success, 0 otherwise. * success, 0 otherwise.

View file

@ -1,10 +1,10 @@
/* poisoning (UMM_POISON_CHECK) {{{ */ /* poisoning (UMM_POISON_CHECK) {{{ */
#if defined(UMM_POISON_CHECK)
#define POISON_BYTE (0xa5)
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include <stdbool.h> #include <stdbool.h>
#if defined(UMM_POISON_CHECK)
#define POISON_BYTE (0xa5)
/* /*
* Yields a size of the poison for the block of size `s`. * Yields a size of the poison for the block of size `s`.