From 4d971d27cef63cfed6b3571921cafcb99d8140c9 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 29 Sep 2023 14:36:56 +0530 Subject: [PATCH] gunit/015: fix unused variable warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix unused variable warning: 015-cgroupv2_controller_enabled.cpp: In member function ‘void CgroupV2ControllerEnabled::InitMountTable()’: 015-cgroupv2_controller_enabled.cpp:69:7: warning: unused variable ‘ret’ [-Wunused-variable] int ret, i; ^~~ Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- tests/gunit/015-cgroupv2_controller_enabled.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gunit/015-cgroupv2_controller_enabled.cpp b/tests/gunit/015-cgroupv2_controller_enabled.cpp index 85db6fee..16619c24 100644 --- a/tests/gunit/015-cgroupv2_controller_enabled.cpp +++ b/tests/gunit/015-cgroupv2_controller_enabled.cpp @@ -64,8 +64,8 @@ class CgroupV2ControllerEnabled : public ::testing::Test { void InitMountTable(void) { char tmp_path[FILENAME_MAX] = {0}; - int ret, i; FILE *f; + int i; ASSERT_EQ(VERSIONS_CNT, CONTROLLERS_CNT); -- 2.47.2