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:
parent
3bca1b6aad
commit
61d451d6ce
2 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "ruby/util.h"
|
||||
|
||||
#ifndef BIGDECIMAL_DEBUG
|
||||
# undef NDEBUG
|
||||
# define NDEBUG
|
||||
#endif
|
||||
#include <assert.h>
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#undef NDEBUG
|
||||
#define NDEBUG
|
||||
#include <assert.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue