From: Kamalesh Babulal Date: Fri, 29 Sep 2023 09:06:56 +0000 (+0530) Subject: gunit/015: fix unused variable warning X-Git-Tag: v3.2.0~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d971d27cef63cfed6b3571921cafcb99d8140c9;p=thirdparty%2Flibcgroup.git gunit/015: fix unused variable warning 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 --- 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);