From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30940 invoked by alias); 27 Nov 2014 08:24:00 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 30929 invoked by uid 89); 27 Nov 2014 08:23:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: libc-alpha@sourceware.org From: Stefan Liebler Subject: Re: Avoid warnings for unused results in nscd/connections.c Date: Thu, 27 Nov 2014 08:24:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010903070400040102060203" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: X-SW-Source: 2014-11/txt/msg00808.txt.bz2 This is a multi-part message in MIME format. --------------010903070400040102060203 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-length: 513 Hi, Building glibc fails at least on s390/power with: connections.c: In function ‘restart’: connections.c:1467:4: error: implicit declaration of function ‘ignore_value’ [-Werror=implicit-function-declaration] ignore_value (setuid (server_uid)); ^ cc1: some warnings being treated as errors Including libc-internal.h fixes the build failure. Bye Stefan --- 2014-11-27 Stefan Liebler * nscd/connections.c: Include libc-internal.h because of macro usage ignore_value. --------------010903070400040102060203 Content-Type: text/plain; charset=UTF-8; name="20141127_connections" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="20141127_connections" Content-length: 294 diff --git a/nscd/connections.c b/nscd/connections.c index 1631212..a6b9808 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -59,6 +59,7 @@ #include #include +#include /* Support to run nscd as an unprivileged user */ --------------010903070400040102060203--