Merge pull request #547 from dota17/assert_test

modify json-c default build type, and fix up the assert() errors in t…
This commit is contained in:
Eric Haszlakiewicz authored and GitHub committed 2020-03-03 07:54:21 -06:00
commit a8c9284f06
4 files changed
+13 -5

No files matched your search

-5
View File
@@ -52,8 +52,3 @@ target_link_libraries(
endforeach(TESTNAME)
# Make sure NDEBUG is always undefined for tests
if (UNIX OR MINGW OR CYGWIN)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -UNDEBUG")
endif()
+3
View File
@@ -2,6 +2,9 @@
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <errno.h>
#include <time.h>
+3
View File
@@ -1,5 +1,8 @@
#include "strerror_override.h"
#include "strerror_override_private.h"
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <assert.h>
#include <stdio.h>
#include <string.h>