--- /dev/null
+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 arlo.cworth.org (Postfix) with ESMTP id F0EC46DE1510\r
+ for <notmuch@notmuchmail.org>; Fri, 4 Sep 2015 11:49:24 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.492\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.492 tagged_above=-999 required=5 tests=[AWL=0.228,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id zTGMXxuXqdcO for <notmuch@notmuchmail.org>;\r
+ Fri, 4 Sep 2015 11:49:23 -0700 (PDT)\r
+Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com\r
+ [209.85.212.177])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id F1B496DE147C\r
+ for <notmuch@notmuchmail.org>; Fri, 4 Sep 2015 11:49:22 -0700 (PDT)\r
+Received: by wicfx3 with SMTP id fx3so26711492wic.0\r
+ for <notmuch@notmuchmail.org>; Fri, 04 Sep 2015 11:49:21 -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:in-reply-to\r
+ :references:mime-version:content-type:content-transfer-encoding;\r
+ bh=4ew+8IJlwj2a0z+C6jH5ULLKhS0BzO+Jl4HtHm9bMWU=;\r
+ b=gi5uOm8wCjYOvbZVFclPvjHLqLvYqDJ4QM1DvcmRjHZlJiFNw2mRqWGbqOdMlzs9ZA\r
+ Pji1MZbpZobsnmFbPJc8kFg944TUixUJ181/JE1481+WR6C6FUkqjiMVr2pLbSAf4g/3\r
+ lhpC/xH1b5GdlGihQrASLmShf9VxvEpYMKHMlmp0uM9gnYhPjUnP7S8AjMahH/EQ7enw\r
+ 0BGNjoE3fzoA1TUEFIAlSmwI356Pb6QTCw7s9lP+qDlBOKaDyv5i8hcVSHidoMG0lW6Z\r
+ dFbUJ5VqCagxdTR2eWu2YHZfTxoraaPpyUTS0i3URwnZgkgiybq9k2U1VqpC3YVL8zSA\r
+ gXoA==\r
+X-Gm-Message-State:\r
+ ALoCoQmtBe45rYnkpd6hfcxlcyO9ZC0PQOEDQ3OS8U8E2rY4BJgQV/o1B7XgxCT3mfMa3RGgNyCH\r
+X-Received: by 10.180.89.41 with SMTP id bl9mr9761878wib.85.1441392561341;\r
+ Fri, 04 Sep 2015 11:49:21 -0700 (PDT)\r
+Received: from localhost (mobile-access-bcee4f-131.dhcp.inet.fi.\r
+ [188.238.79.131])\r
+ by smtp.gmail.com with ESMTPSA id lz10sm5553267wjb.48.2015.09.04.11.49.20\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Fri, 04 Sep 2015 11:49:20 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] test: check argc in symbol-test\r
+Date: Fri, 4 Sep 2015 21:49:15 +0300\r
+Message-Id: <1441392555-20056-2-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 2.1.4\r
+In-Reply-To: <1441392555-20056-1-git-send-email-jani@nikula.org>\r
+References: <1441392555-20056-1-git-send-email-jani@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: 8bit\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Fri, 04 Sep 2015 18:49:25 -0000\r
+\r
+Check argc mainly to fix unused parameter warning:\r
+\r
+test/symbol-test.cc:7:14: warning: unused parameter ‘argc’ [-Wunused-parameter]\r
+ int main(int argc, char** argv) {\r
+ ^\r
+\r
+This makes more sense than telling the compiler it's unused on\r
+purpose.\r
+---\r
+ test/symbol-test.cc | 3 +++\r
+ 1 file changed, 3 insertions(+)\r
+\r
+diff --git a/test/symbol-test.cc b/test/symbol-test.cc\r
+index 77dbc1af44b2..23583bfc11b5 100644\r
+--- a/test/symbol-test.cc\r
++++ b/test/symbol-test.cc\r
+@@ -8,6 +8,9 @@ int main (int argc, char** argv)\r
+ notmuch_database_t *notmuch;\r
+ char *message = NULL;\r
+ \r
++ if (argc != 2)\r
++ return 1;\r
++\r
+ if (notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_ONLY,\r
+ ¬much, &message)) {\r
+ if (message) {\r
+-- \r
+2.1.4\r
+\r