From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id F2C8E6DE0927 for ; Fri, 16 Jun 2017 15:50:35 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9ZatWuJ16yA1 for ; Fri, 16 Jun 2017 15:50:35 -0700 (PDT) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id 146FD6DE0B7C for ; Fri, 16 Jun 2017 15:50:35 -0700 (PDT) Received: by mail-wm0-f67.google.com with SMTP id f90so7285203wmh.0 for ; Fri, 16 Jun 2017 15:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=f1TSH8axk/o4z8bahmFihId0IjIh0webv6O4fmoJ660=; b=KC3i3pkcSe9xbmFnstEf4//roTNg8GwLsUMPa1PG2yS4e4LvBL1Z+5H8fUXF7FReoc 1PmThPGnxMRSNHXQ1H7vTHwX0ou2CXSNmChOhnu7n6vu2vTt1+e7gUmh3mYAkaqHNfDO 2YSbzoPP65RBo0GmPNpOE8LOlwGLK8q6iAXZikwtwOLhRxu0ECEM+cV14GW9N46fdT3C 3sGQN37ascMQfRw8w9mwO/py5rbBPPMr5b1rW1qE60hKJHXqMYnN5MMaBoiK1A4dAm/3 vTxWkNoO6dCqSSvvG05N1KEVFPp58tPBtdWfnVk/CICcx6FCpsUQoJCMOXnUB586i6PV aYog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=f1TSH8axk/o4z8bahmFihId0IjIh0webv6O4fmoJ660=; b=sD/jCdRdtX3WM8bVE4B//Qt/PgBuc7Nh+VqnkyA+5E7bHqXLwCj/36DHcfpj8/buCm c1Hvm61fqnXcopJ3BxHixh52007aKDwCa1XVOHVl3lV4sUtmaKRIcSXA8GM8Gv2+daia yrTDk/G3dqZVYoZvgqDo0hbpi+MoHU8Ka4Hv+FlHoJWY0Z2RfMgW1vqfOgqmOnxc9ExX cvzGbWDGKvJEq+h9ktF4LDEeruDiBYwZ+esRWNDIrI6oHKlQaq8hLdz2DWOzhIqwnu56 4zZn9uEyoOx41h/acsNsjc1f2uDk8dWwgNp7atSmgKdIERrm3Nrv/qjBNIyQ6fUwZaIY 5rUQ== X-Gm-Message-State: AKS2vOw0SAD6aV41ZPRwEXPll2u60CbGb7zJSNR1F2ffWjBnlxEeH4dh B49uqYTBjbF5tl4Y X-Received: by 10.28.225.86 with SMTP id y83mr8904967wmg.119.1497653433519; Fri, 16 Jun 2017 15:50:33 -0700 (PDT) Received: from sparkmobile.lan (209.166.93.209.dyn.plus.net. [209.93.166.209]) by smtp.gmail.com with ESMTPSA id y17sm4441851wrb.39.2017.06.16.15.50.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jun 2017 15:50:32 -0700 (PDT) From: Piotr Trojanek To: notmuch@notmuchmail.org Subject: [PATCH 3/5] remove ineffective assignments Date: Fri, 16 Jun 2017 23:50:24 +0100 Message-Id: <20170616225026.8098-3-piotr.trojanek@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170616225026.8098-1-piotr.trojanek@gmail.com> References: <20170616225026.8098-1-piotr.trojanek@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Fri, 16 Jun 2017 22:50:36 -0000 Detected by cppecheck. --- notmuch-new.c | 2 +- tag-util.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git notmuch-new.c notmuch-new.c index e2822e23..4d40f3d0 100644 --- notmuch-new.c +++ notmuch-new.c @@ -850,7 +850,7 @@ _remove_directory (void *ctx, const char *path, add_files_state_t *add_files_state) { - notmuch_status_t status = NOTMUCH_STATUS_SUCCESS; + notmuch_status_t status; notmuch_directory_t *directory; notmuch_filenames_t *files, *subdirs; char *absolute; diff --git tag-util.c tag-util.c index 30c2c077..d9fca7b8 100644 --- tag-util.c +++ tag-util.c @@ -218,7 +218,6 @@ makes_changes (notmuch_message_t *message, notmuch_bool_t changes = FALSE; /* First, do we delete an existing tag? */ - changes = FALSE; for (tags = notmuch_message_get_tags (message); ! changes && notmuch_tags_valid (tags); notmuch_tags_move_to_next (tags)) { -- 2.11.0