From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25364 invoked by alias); 21 Jan 2010 14:12:42 -0000 Received: (qmail 25352 invoked by uid 22791); 21 Jan 2010 14:12:41 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f219.google.com (HELO mail-bw0-f219.google.com) (209.85.218.219) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Jan 2010 14:12:38 +0000 Received: by bwz19 with SMTP id 19so5055901bwz.28 for ; Thu, 21 Jan 2010 06:12:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.10.9 with SMTP id n9mr829095bkn.41.1264083155330; Thu, 21 Jan 2010 06:12:35 -0800 (PST) Date: Thu, 21 Jan 2010 14:12:00 -0000 Message-ID: <90baa01f1001210612v145db5f9m3b4607f602c2ae26@mail.gmail.com> Subject: [patch]: Fix build for GO32 and WIN32 targets From: Kai Tietz To: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00523.txt.bz2 Hello, the function check_syscall in file inflow.c is static, but isn't used for GO32 and _WIN32 targets. So this leads to "defined but not used" warning and breaks build. Patch fix this 2010-01-21 Kai Tietz * inflow.c (check_syscall): Guard by #if clause for GO32 and WIN32 targets. Tested for i686-pc-cygwin, x86_64-w64-mingw32, and i686-pc-mingw32. Ok for apply? Regards, Kai Index: inflow.c =================================================================== RCS file: /cvs/src/src/gdb/inflow.c,v retrieving revision 1.56 diff -u -r1.56 inflow.c --- inflow.c 19 Jan 2010 09:39:12 -0000 1.56 +++ inflow.c 21 Jan 2010 14:11:55 -0000 @@ -633,7 +633,7 @@ inferior_thisrun_terminal = ttyname; } - +#if !defined(__GO32__) && !defined(_WIN32) /* If RESULT, assumed to be the return value from a system call, is negative, print the error message indicated by errno and exit. MSG should identify the operation that failed. */ @@ -646,6 +646,7 @@ _exit (1); } } +#endif void new_tty (void) -- | (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination