eina magic debug test - fix xarnings about double-defining

only domagic debug test if magic debug is enabled, otherwise have no
test. fixes warning
This commit is contained in:
Carsten Haitzler 2018-11-07 13:23:06 +00:00
parent b279ff77cc
commit ba372625a9
1 changed files with 5 additions and 2 deletions

View File

@ -24,9 +24,9 @@
#include <stdio.h>
#include <string.h>
#define EINA_MAGIC_DEBUG
#include <Eina.h>
#ifdef EINA_MAGIC_DEBUG
#include "eina_safety_checks.h"
#include "eina_suite.h"
@ -190,9 +190,12 @@ EFL_START_TEST(eina_magic_simple)
}
EFL_END_TEST
#endif
void eina_test_magic(TCase *tc)
{
#ifdef EINA_MAGIC_DEBUG
tcase_add_test(tc, eina_magic_simple);
#endif
}