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

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