1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUG

`#define NDEBUG` produces "macro redefined" warnings when it is already
defined via cppflags
This commit is contained in:
Yusuke Endoh 2020-05-13 13:49:21 +09:00
parent 3bca1b6aad
commit 61d451d6ce
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@
#include "ruby/util.h"
#ifndef BIGDECIMAL_DEBUG
# undef NDEBUG
# define NDEBUG
#endif
#include <assert.h>

View file

@ -11,6 +11,7 @@
#include <sys/time.h>
#endif
#undef NDEBUG
#define NDEBUG
#include <assert.h>