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"
|
#include "ruby/util.h"
|
||||||
|
|
||||||
#ifndef BIGDECIMAL_DEBUG
|
#ifndef BIGDECIMAL_DEBUG
|
||||||
|
# undef NDEBUG
|
||||||
# define NDEBUG
|
# define NDEBUG
|
||||||
#endif
|
#endif
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef NDEBUG
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue