Skip to content

Commit

Permalink
Define _DEBUG to 0 if not done yet
Browse files Browse the repository at this point in the history
to avoid the preprocess warning

Signed-off-by: Xiang Xiao <[email protected]>
Change-Id: I4ae1eb8533563d377ec8614f0c9428c8734e1f2c
  • Loading branch information
xiaoxiang781216 committed Mar 10, 2021
1 parent deff9ab commit c4901cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tlsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

#include "tlsf.h"

#if !defined(_DEBUG)
#define _DEBUG 0
#endif

#if defined(__cplusplus)
#define tlsf_decl inline
#else
Expand Down Expand Up @@ -1046,7 +1050,7 @@ void tlsf_remove_pool(tlsf_t tlsf, pool_t pool)
*/

#if _DEBUG
int test_ffs_fls()
static int test_ffs_fls()
{
/* Verify ffs/fls work properly. */
int rv = 0;
Expand Down

0 comments on commit c4901cf

Please sign in to comment.