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

c6d234
commit 2aac0a862334f3370a7e0b6bc7a53cf0ab847182
c6d234
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
c6d234
Date:   Thu Jun 26 14:10:07 2014 +0530
c6d234
c6d234
    Fix Wundef warning for SEPARATE_KEY
c6d234
    
c6d234
    The SEPARATE_KEY macro is never defined in any condition or
c6d234
    architecture.  It is effectively dead code, so remove it.
c6d234
c6d234
diff --git a/nscd/connections.c b/nscd/connections.c
c6d234
index 57cb8c180e8e6402..53813cf58876eae7 100644
c6d234
--- a/nscd/connections.c
c6d234
+++ b/nscd/connections.c
c6d234
@@ -317,12 +317,6 @@ enum usekey
c6d234
     use_he = 1,
c6d234
     use_he_begin = use_he | use_begin,
c6d234
     use_he_end = use_he | use_end,
c6d234
-#if SEPARATE_KEY
c6d234
-    use_key = 2,
c6d234
-    use_key_begin = use_key | use_begin,
c6d234
-    use_key_end = use_key | use_end,
c6d234
-    use_key_first = use_key_begin | use_first,
c6d234
-#endif
c6d234
     use_data = 3,
c6d234
     use_data_begin = use_data | use_begin,
c6d234
     use_data_end = use_data | use_end,
c6d234
@@ -471,16 +465,7 @@ verify_persistent_db (void *mem, struct database_pers_head *readhead, int dbnr)
c6d234
 	  if (here->key < here->packet + sizeof (struct datahead)
c6d234
 	      || here->key > here->packet + dh->allocsize
c6d234
 	      || here->key + here->len > here->packet + dh->allocsize)
c6d234
-	    {
c6d234
-#if SEPARATE_KEY
c6d234
-	      /* If keys can appear outside of data, this should be done
c6d234
-		 instead.  But gc doesn't mark the data in that case.  */
c6d234
-	      if (! check_use (data, head->first_free, usemap,
c6d234
-			       use_key | (here->first ? use_first : 0),
c6d234
-			       here->key, here->len))
c6d234
-#endif
c6d234
-		goto fail;
c6d234
-	    }
c6d234
+	    goto fail;
c6d234
 
c6d234
 	  work = here->next;
c6d234
 
c6d234
@@ -500,10 +485,6 @@ verify_persistent_db (void *mem, struct database_pers_head *readhead, int dbnr)
c6d234
      he->first == true hashentry.  */
c6d234
   for (ref_t idx = 0; idx < head->first_free; ++idx)
c6d234
     {
c6d234
-#if SEPARATE_KEY
c6d234
-      if (usemap[idx] == use_key_begin)
c6d234
-	goto fail;
c6d234
-#endif
c6d234
       if (usemap[idx] == use_data_begin)
c6d234
 	goto fail;
c6d234
     }