ruby-changes:61236
From: Yusuke <ko1@a...>
Date: Wed, 13 May 2020 13:51:08 +0900 (JST)
Subject: [ruby-changes:61236] 61d451d6ce (master): ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUG
https://git.ruby-lang.org/ruby.git/commit/?id=61d451d6ce From 61d451d6cec0aa290e5f550f449d067833979b2b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 13 May 2020 13:49:21 +0900 Subject: ext/bigdecimal/bigdecimal.c, ext/date/date_core.c: undef NDEBUG `#define NDEBUG` produces "macro redefined" warnings when it is already defined via cppflags diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index ecd43fd..c442335 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -14,6 +14,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L14 #include "ruby/util.h" #ifndef BIGDECIMAL_DEBUG +# undef NDEBUG # define NDEBUG #endif #include <assert.h> diff --git a/ext/date/date_core.c b/ext/date/date_core.c index ccac90a..e44dcc1 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -11,6 +11,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L11 #include <sys/time.h> #endif +#undef NDEBUG #define NDEBUG #include <assert.h> -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/