about summary refs log tree commit diff
path: root/nscd
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 /nscd
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 'nscd')
-rw-r--r--nscd/nscd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c
index 3391915907..bd7c777f09 100644
--- a/nscd/nscd.c
+++ b/nscd/nscd.c
@@ -659,7 +659,8 @@ do_exit (int child_ret, int errnum, const char *format, ...)
 {
   if (parent_fd != -1)
     {
-      int ret = write (parent_fd, &child_ret, sizeof (child_ret));
+      int ret __attribute__ ((unused));
+      ret = write (parent_fd, &child_ret, sizeof (child_ret));
       assert (ret == sizeof (child_ret));
       close (parent_fd);
     }
@@ -691,7 +692,8 @@ notify_parent (int child_ret)
   if (parent_fd == -1)
     return;
 
-  int ret = write (parent_fd, &child_ret, sizeof (child_ret));
+  int ret __attribute__ ((unused));
+  ret = write (parent_fd, &child_ret, sizeof (child_ret));
   assert (ret == sizeof (child_ret));
   close (parent_fd);
   parent_fd = -1;