From patchwork Tue Nov 10 11:17:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 7592071 Return-Path: X-Original-To: patchwork-linux-nvdimm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E40CABF90C for ; Tue, 10 Nov 2015 19:17:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2A2B220584 for ; Tue, 10 Nov 2015 19:17:22 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2449920459 for ; Tue, 10 Nov 2015 19:17:21 +0000 (UTC) Received: from ml01.vlan14.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 19A571A2028; Tue, 10 Nov 2015 11:17:21 -0800 (PST) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by ml01.01.org (Postfix) with ESMTP id 0B7FB1A2032 for ; Tue, 10 Nov 2015 11:17:19 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 10 Nov 2015 11:17:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,271,1444719600"; d="scan'208";a="682383132" Received: from dwillia2-desk3.jf.intel.com ([10.54.39.39]) by orsmga003.jf.intel.com with ESMTP; 10 Nov 2015 11:17:16 -0800 Subject: [PATCH 3/3] ndctl: fix test-libndctl warning From: Dan Williams To: linux-nvdimm@lists.01.org Date: Tue, 10 Nov 2015 06:17:14 -0500 Message-ID: <20151110111714.15310.78769.stgit@dwillia2-desk3.jf.intel.com> In-Reply-To: <20151110111659.15310.88429.stgit@dwillia2-desk3.jf.intel.com> References: <20151110111659.15310.88429.stgit@dwillia2-desk3.jf.intel.com> User-Agent: StGit/0.17.1-9-g687f MIME-Version: 1.0 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DATE_IN_PAST_06_12, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP lib/test-libndctl.c:626:2: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized] This only seems to trigger in rpm builds, but needs cleaning up nonetheless. Signed-off-by: Dan Williams --- lib/test-libndctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test-libndctl.c b/lib/test-libndctl.c index bf9412df6bff..c406685f1c4d 100644 --- a/lib/test-libndctl.c +++ b/lib/test-libndctl.c @@ -524,7 +524,7 @@ static int check_btt_create(struct ndctl_region *region, struct ndctl_namespace const char *devname; char bdevpath[50]; void *buf = NULL; - ssize_t rc; + ssize_t rc = 0; if (!namespace->btt_settings) return 0;