Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 80E90429E35 for ; Tue, 26 Apr 2011 05:48:25 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oKSlAOuYmywq for ; Tue, 26 Apr 2011 05:48:24 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 8611D431FD0 for ; Tue, 26 Apr 2011 05:48:24 -0700 (PDT) Received: by wyi11 with SMTP id 11so464671wyi.26 for ; Tue, 26 Apr 2011 05:48:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.32.131 with SMTP id c3mr734697wbd.188.1303822100636; Tue, 26 Apr 2011 05:48:20 -0700 (PDT) Received: by 10.227.147.83 with HTTP; Tue, 26 Apr 2011 05:48:20 -0700 (PDT) Date: Tue, 26 Apr 2011 14:48:20 +0200 Message-ID: Subject: [PATCH] Remove unused variable from signal handlers From: Soeren Finster To: notmuch@notmuchmail.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Tue, 26 Apr 2011 11:17:17 -0700 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2011 12:48:25 -0000 No effect but lesser gcc complaints Signed-off-by: Soeren Finster --- notmuch-new.c | 4 +--- notmuch-tag.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index 4874a1c..271ef9a 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -64,10 +64,8 @@ static volatile sig_atomic_t interrupted; static void handle_sigint (unused (int sig)) { - ssize_t ignored; static char msg[] = "Stopping... \n"; - - ignored = write(2, msg, sizeof(msg)-1); + write(2, msg, sizeof(msg)-1); interrupted = 1; } diff --git a/notmuch-tag.c b/notmuch-tag.c index 60e21e0..6204ae3 100644 --- a/notmuch-tag.c +++ b/notmuch-tag.c @@ -25,10 +25,8 @@ static volatile sig_atomic_t interrupted; static void handle_sigint (unused (int sig)) { - ssize_t ignored; - static char msg[] = "Stopping... \n"; - ignored = write(2, msg, sizeof(msg)-1); + write(2, msg, sizeof(msg)-1); interrupted = 1; } -- 1.7.4.4