From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [180.246.144.41]) by gnuweeb.org (Postfix) with ESMTPSA id 8FFB180927; Wed, 17 Aug 2022 01:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1660698598; bh=b0XMex1K+mJXLeoQyzWR6oKW8WV3BHLs5CaT9Vxifh0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NwOcDfYRV562UrL4xJFFZXHZIlx+LaIgikXvP+5g9FsJ8oCTr/LvfZudz9rOxIWyt DW3KNeWKrbTKOsxUwQQp/jZznNyPFcmDnGuXMSu5e3XumNnUZtENB6JplO2kpg5Ct/ Yxc/oWdz5yPYxhSww+R0Rf+ASYzKIwf3PTjbgvrYG6CkS1G1lGRUf53NlCcUb/c6JR 6k+VdSpTD6LKo6VF0GwboRpGsfv893nfjhRO/uXWf2dfFNcr9UsLisvy/ypBDGpG8O OTf3oyWPZ9qCf1m6O096c5htYDG9tnVYV4iaCguTqB18O56iQgfs9BV9ZdAdEJzsVP jQbnhcHqHmuhg== From: Ammar Faizi To: Alviro Iskandar Setiawan Cc: Ammar Faizi , GNU/Weeb Mailing List Subject: [PATCH ncns v1 2/2] chnet: node: Fix unused variable warning Date: Wed, 17 Aug 2022 08:09:42 +0700 Message-Id: <20220817010942.316631-3-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220817010942.316631-1-ammarfaizi2@gnuweeb.org> References: <20220817010942.316631-1-ammarfaizi2@gnuweeb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: Fix this: ../chnet/chnet_node.cc: In function ‘void CHN_RingWaitCQE(const Napi::CallbackInfo&)’: ../chnet/chnet_node.cc:146:19: warning: variable ‘env’ set but not used [-Wunused-but-set-variable] 146 | Napi::Env env = info.Env(); | ^~~ Fixes: 4fc27d45cfbb5a19a499ca4398b522038cbd8e42 ("chnet_node: Fully integrate chnet ring with NodeJS") Signed-off-by: Ammar Faizi --- chnet/chnet_node.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/chnet/chnet_node.cc b/chnet/chnet_node.cc index c89a745..06f624e 100644 --- a/chnet/chnet_node.cc +++ b/chnet/chnet_node.cc @@ -143,7 +143,6 @@ static Napi::Value CHN_RingSubmitSQE(const Napi::CallbackInfo &info) static void CHN_RingWaitCQE(const Napi::CallbackInfo &info) { - Napi::Env env = info.Env(); uint32_t to_wait; CNRingCtx *ring; -- Ammar Faizi