From patchwork Fri May 6 07:46:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tristan Gingold X-Patchwork-Id: 94342 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 233801007D1 for ; Fri, 6 May 2011 17:46:57 +1000 (EST) Received: (qmail 25221 invoked by alias); 6 May 2011 07:46:54 -0000 Received: (qmail 25210 invoked by uid 22791); 6 May 2011 07:46:53 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_20 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 May 2011 07:46:38 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 412AACB01D3 for ; Fri, 6 May 2011 09:46:37 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zVU1ysxiGYgS for ; Fri, 6 May 2011 09:46:34 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 47295CB016C for ; Fri, 6 May 2011 09:46:34 +0200 (CEST) From: Tristan Gingold Subject: [Patch] Fix PR 48895 (vms-ar.c) Date: Fri, 6 May 2011 09:46:34 +0200 Message-Id: <8B2A973E-14AA-47B8-AAA1-B771525DDDDD@adacore.com> To: "gcc-patches@gcc.gnu.org Patches" Mime-Version: 1.0 (Apple Message framework v1084) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, this patch fixes a gcc warning on vms-ar.c (variable set but not used). I didn't notice it because I wasn't compiling with a recent enough gcc version. Committed on trunk. Tristan. gcc/ 2011-05-06 Tristan Gingold PR target/48895 * config/vms/vms-ar.c (main): Remove cwd variable. Index: gcc/config/vms/vms-ar.c =================================================================== --- gcc/config/vms/vms-ar.c (revision 173470) +++ gcc/config/vms/vms-ar.c (working copy) @@ -125,13 +125,10 @@ FILE *comfile; int comfd; int outlen, maxoutlen = 4000; - char *cwd; char temp_filename[] = TEMP_FILE SUFFIX; char command[256]; int status; - cwd = getcwd (0, 1024); - if (argc < 2) { fprintf (stderr, "ar: no command or archive\n");