about summary refs log tree commit diff
path: root/sysdeps/nptl/gai_misc.h
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2016-01-15 10:44:07 -0700
committerMartin Sebor <msebor@redhat.com>2016-01-15 10:44:07 -0700
commitad37480c4b79b801b987f5529d036b4e25cac615 (patch)
tree28121b24f4de02b2b189bbd312cd95cc27b59646 /sysdeps/nptl/gai_misc.h
parent09245377dac2c013155500ac0b3b05850813e3f8 (diff)
downloadglibc-ad37480c4b79b801b987f5529d036b4e25cac615.tar.gz
glibc-ad37480c4b79b801b987f5529d036b4e25cac615.tar.xz
glibc-ad37480c4b79b801b987f5529d036b4e25cac615.zip
Fix build errors with -DNDEBUG.
        [BZ #18755]
        * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
        warnings.
        * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
        (__gai_create_helper_thread): Same.
        * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
        * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
        to suppress -Wmaybe-uninitialized warnings.
Diffstat (limited to 'sysdeps/nptl/gai_misc.h')
-rw-r--r--sysdeps/nptl/gai_misc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/nptl/gai_misc.h b/sysdeps/nptl/gai_misc.h
index 7f26382c8c..c550cdd85e 100644
--- a/sysdeps/nptl/gai_misc.h
+++ b/sysdeps/nptl/gai_misc.h
@@ -81,7 +81,8 @@ __gai_start_notify_thread (void)
 {
   sigset_t ss;
   sigemptyset (&ss);
-  int sigerr = pthread_sigmask (SIG_SETMASK, &ss, NULL);
+  int sigerr __attribute__ ((unused));
+  sigerr = pthread_sigmask (SIG_SETMASK, &ss, NULL);
   assert_perror (sigerr);
 }
 
@@ -105,7 +106,8 @@ __gai_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
   sigset_t ss;
   sigset_t oss;
   sigfillset (&ss);
-  int sigerr = pthread_sigmask (SIG_SETMASK, &ss, &oss);
+  int sigerr __attribute__ ((unused));
+  sigerr = pthread_sigmask (SIG_SETMASK, &ss, &oss);
   assert_perror (sigerr);
 
   int ret = pthread_create (threadp, &attr, tf, arg);