Blame SOURCES/glibc-rh1505492-undef-45.patch

c6d234
commit 78dd658a025fb16d004677284b4db0d0c0191845
c6d234
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
c6d234
Date:   Fri Aug 1 14:24:41 2014 +0530
c6d234
c6d234
    Check if DEBUG is defined in regex_internal.c
c6d234
    
c6d234
    The DEBUG macro is checked for its value in one place and if it is
c6d234
    defined in another.  Make this consistent across the two cases and use
c6d234
    the same style that we did in mktime.c, which is to check if the macro
c6d234
    is defined and it is set.
c6d234
c6d234
diff --git a/posix/regex_internal.c b/posix/regex_internal.c
c6d234
index 9be8a532e6d34150..1765035f06e906e5 100644
c6d234
--- a/posix/regex_internal.c
c6d234
+++ b/posix/regex_internal.c
c6d234
@@ -679,7 +679,7 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags)
c6d234
 			 pstr->valid_len - offset);
c6d234
 	      pstr->valid_len -= offset;
c6d234
 	      pstr->valid_raw_len -= offset;
c6d234
-#if DEBUG
c6d234
+#if defined DEBUG && DEBUG
c6d234
 	      assert (pstr->valid_len > 0);
c6d234
 #endif
c6d234
 	    }
c6d234
@@ -936,7 +936,7 @@ re_string_context_at (const re_string_t *input, int idx, int eflags)
c6d234
       int wc_idx = idx;
c6d234
       while(input->wcs[wc_idx] == WEOF)
c6d234
 	{
c6d234
-#ifdef DEBUG
c6d234
+#if defined DEBUG && DEBUG
c6d234
 	  /* It must not happen.  */
c6d234
 	  assert (wc_idx >= 0);
c6d234
 #endif