Blame SOURCES/glibc-rh1505492-unused-15.patch

00db10
Declare elision_available in elision_init under the preprocessor
00db10
conditional, to avoid an unused variable warning.
00db10
00db10
Upstream, this has been obsoleted by other elision-related changes.
00db10
00db10
diff --git a/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c b/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c
00db10
index 69b4fa4c66e89bc6..cc5efb811352adf1 100644
00db10
--- a/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c
00db10
+++ b/nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c
00db10
@@ -66,8 +66,8 @@ elision_init (int argc __attribute__ ((unused)),
00db10
 	      char **argv  __attribute__ ((unused)),
00db10
 	      char **environ)
00db10
 {
00db10
-  int elision_available = HAS_CPU_FEATURE (RTM);
00db10
 #ifdef ENABLE_LOCK_ELISION
00db10
+  int elision_available = HAS_CPU_FEATURE (RTM);
00db10
   if (!__libc_enable_secure && elision_available)
00db10
     {
00db10
       /* RHEL 7 specific change: Check if elision is enabled for the