From 21eac7248868df3e00d08b350ef1705a1cb6281b Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sat, 4 Oct 2014 20:53:09 +0300 Subject: [PATCH] [PATCH] hex-escape: remove unused variable default_buf_size --- 07/b8b16c7d617cd551fad709cf0036e97db58e99 | 90 +++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 07/b8b16c7d617cd551fad709cf0036e97db58e99 diff --git a/07/b8b16c7d617cd551fad709cf0036e97db58e99 b/07/b8b16c7d617cd551fad709cf0036e97db58e99 new file mode 100644 index 000000000..d44210136 --- /dev/null +++ b/07/b8b16c7d617cd551fad709cf0036e97db58e99 @@ -0,0 +1,90 @@ +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 70718431FBC + for ; Sat, 4 Oct 2014 10:53:19 -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 N8NgRKo4G5Jp for ; + Sat, 4 Oct 2014 10:53:14 -0700 (PDT) +Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com + [209.85.212.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id BF363431FB6 + for ; Sat, 4 Oct 2014 10:53:13 -0700 (PDT) +Received: by mail-wi0-f180.google.com with SMTP id em10so1398516wid.1 + for ; Sat, 04 Oct 2014 10:53:12 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=IESja30/c2u+m6retE+NfWHci3h17nWIg0AMuD10/C4=; + b=CJHIV9N4+7tYaRMByp0sn7juN8r438e7GRp7TkZjPG40eM1TeMBNk/qy+DgBCrxgmL + EJR5GkIOzkvpdVSuqS/dOoL68CPAm5NlEgPyKLThvsKs9J6nVXgm06rDgQmWJ6/wTmxB + Q+sRaACD3WfSvQbzCoQJ8SQUue0m33Z0Fp+t5RAWfmhHsfSBTqs+fLDDVFljuCXL9Bpm + /U57GDtvNfcyn9v1evI4/34e0xrVWJy704bbbW72U2kQAOvFUgMDwTtnFfjd3JUh6vzK + uGwmc+jBaxhIzj1kfhDLkG6GX7o1zTxOT83b6szmvuYdpfzAIWpIdkYaaHddoBo14QlC + h0tA== +X-Gm-Message-State: + ALoCoQnGdUdd1cfohn/MiEy0UaYh9VKaayhrdwu9c1RI3bBLZF4Jf06t4FhjsXv+fEmtQzhPyYqP +X-Received: by 10.180.20.139 with SMTP id n11mr7341704wie.22.1412445192231; + Sat, 04 Oct 2014 10:53:12 -0700 (PDT) +Received: from localhost (mobile-internet-5d6a1c-239.dhcp.inet.fi. + [93.106.28.239]) by mx.google.com with ESMTPSA id + os4sm10614009wjc.48.2014.10.04.10.53.10 for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 04 Oct 2014 10:53:11 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH] hex-escape: remove unused variable default_buf_size +Date: Sat, 4 Oct 2014 20:53:09 +0300 +Message-Id: <1412445189-27975-1-git-send-email-jani@nikula.org> +X-Mailer: git-send-email 2.1.1 +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: Sat, 04 Oct 2014 17:53:19 -0000 + +Found by clang: + +CC -O2 util/hex-escape.o +util/hex-escape.c:28:21: warning: unused variable 'default_buf_size' + [-Wunused-const-variable] +static const size_t default_buf_size = 1024; + ^ +1 warning generated. +--- + util/hex-escape.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/util/hex-escape.c b/util/hex-escape.c +index b7e2e07aaa7d..b4a2a02aebd8 100644 +--- a/util/hex-escape.c ++++ b/util/hex-escape.c +@@ -25,8 +25,6 @@ + #include "error_util.h" + #include "hex-escape.h" + +-static const size_t default_buf_size = 1024; +- + static const char *output_charset = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-_@=.,"; + +-- +2.1.1 + -- 2.26.2