Kaydet (Commit) 33a102ee authored tarafından Masatake YAMATO's avatar Masatake YAMATO Kaydeden (comit) Colomban Wendling

Add dummy definitions to Assert* macros for suppressing compiler warnings

main/field.c:968:23: warning: \
     suggest braces around empty body in an ‘else’ statement [-Wempty-body]

     AssertNotReached();
Signed-off-by: 's avatarMasatake YAMATO <yamato@redhat.com>
üst 99e0f208
......@@ -28,8 +28,8 @@
# define DebugStatement(x) x
# define PrintStatus(x) if (debug(DEBUG_STATUS)) printf x;
# ifdef NDEBUG
# define Assert(c)
# define AssertNotReached()
# define Assert(c) do {} while(0)
# define AssertNotReached() do {} while(0)
# else
/* based on glibc's assert.h __ASSERT_FUNCTION */
# if defined (__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 4))
......@@ -45,8 +45,8 @@
#else
# define DebugStatement(x)
# define PrintStatus(x)
# define Assert(c)
# define AssertNotReached()
# define Assert(c) do {} while(0)
# define AssertNotReached() do {} while(0)
# ifndef NDEBUG
# define NDEBUG
# endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment