[PATCH] hex-escape: remove unused variable default_buf_size
authorJani Nikula <jani@nikula.org>
Sat, 4 Oct 2014 17:53:09 +0000 (20:53 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:59 +0000 (10:04 -0800)
07/b8b16c7d617cd551fad709cf0036e97db58e99 [new file with mode: 0644]

diff --git a/07/b8b16c7d617cd551fad709cf0036e97db58e99 b/07/b8b16c7d617cd551fad709cf0036e97db58e99
new file mode 100644 (file)
index 0000000..d442101
--- /dev/null
@@ -0,0 +1,90 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 70718431FBC\r
+       for <notmuch@notmuchmail.org>; Sat,  4 Oct 2014 10:53:19 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id N8NgRKo4G5Jp for <notmuch@notmuchmail.org>;\r
+       Sat,  4 Oct 2014 10:53:14 -0700 (PDT)\r
+Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com\r
+       [209.85.212.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id BF363431FB6\r
+       for <notmuch@notmuchmail.org>; Sat,  4 Oct 2014 10:53:13 -0700 (PDT)\r
+Received: by mail-wi0-f180.google.com with SMTP id em10so1398516wid.1\r
+       for <notmuch@notmuchmail.org>; Sat, 04 Oct 2014 10:53:12 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+       bh=IESja30/c2u+m6retE+NfWHci3h17nWIg0AMuD10/C4=;\r
+       b=CJHIV9N4+7tYaRMByp0sn7juN8r438e7GRp7TkZjPG40eM1TeMBNk/qy+DgBCrxgmL\r
+       EJR5GkIOzkvpdVSuqS/dOoL68CPAm5NlEgPyKLThvsKs9J6nVXgm06rDgQmWJ6/wTmxB\r
+       Q+sRaACD3WfSvQbzCoQJ8SQUue0m33Z0Fp+t5RAWfmhHsfSBTqs+fLDDVFljuCXL9Bpm\r
+       /U57GDtvNfcyn9v1evI4/34e0xrVWJy704bbbW72U2kQAOvFUgMDwTtnFfjd3JUh6vzK\r
+       uGwmc+jBaxhIzj1kfhDLkG6GX7o1zTxOT83b6szmvuYdpfzAIWpIdkYaaHddoBo14QlC\r
+       h0tA==\r
+X-Gm-Message-State:\r
+ ALoCoQnGdUdd1cfohn/MiEy0UaYh9VKaayhrdwu9c1RI3bBLZF4Jf06t4FhjsXv+fEmtQzhPyYqP\r
+X-Received: by 10.180.20.139 with SMTP id n11mr7341704wie.22.1412445192231;\r
+       Sat, 04 Oct 2014 10:53:12 -0700 (PDT)\r
+Received: from localhost (mobile-internet-5d6a1c-239.dhcp.inet.fi.\r
+       [93.106.28.239]) by mx.google.com with ESMTPSA id\r
+       os4sm10614009wjc.48.2014.10.04.10.53.10 for <multiple recipients>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Sat, 04 Oct 2014 10:53:11 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] hex-escape: remove unused variable default_buf_size\r
+Date: Sat,  4 Oct 2014 20:53:09 +0300\r
+Message-Id: <1412445189-27975-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 2.1.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 04 Oct 2014 17:53:19 -0000\r
+\r
+Found by clang:\r
+\r
+CC  -O2 util/hex-escape.o\r
+util/hex-escape.c:28:21: warning: unused variable 'default_buf_size'\r
+      [-Wunused-const-variable]\r
+static const size_t default_buf_size = 1024;\r
+                    ^\r
+1 warning generated.\r
+---\r
+ util/hex-escape.c | 2 --\r
+ 1 file changed, 2 deletions(-)\r
+\r
+diff --git a/util/hex-escape.c b/util/hex-escape.c\r
+index b7e2e07aaa7d..b4a2a02aebd8 100644\r
+--- a/util/hex-escape.c\r
++++ b/util/hex-escape.c\r
+@@ -25,8 +25,6 @@\r
+ #include "error_util.h"\r
+ #include "hex-escape.h"\r
\r
+-static const size_t default_buf_size = 1024;\r
+-\r
+ static const char *output_charset =\r
+     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-_@=.,";\r
\r
+-- \r
+2.1.1\r
+\r