From 3c57dd9a982bf606cadb505046a1d9fc8bddf51c Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 23 Oct 2024 08:51:15 +0200 Subject: [PATCH] test: minor changes --- test/uvw/handle.cpp | 2 +- test/uvw/util.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/uvw/handle.cpp b/test/uvw/handle.cpp index 4ceb1aaa..92720531 100644 --- a/test/uvw/handle.cpp +++ b/test/uvw/handle.cpp @@ -43,7 +43,7 @@ TEST(Handle, Functionalities) { ASSERT_LT(handle->recv_buffer_size(), 0); ASSERT_NE(0, handle->recv_buffer_size(0)); - ASSERT_NO_THROW(handle->fd()); + ASSERT_NO_THROW([[maybe_unused]] auto fd = handle->fd()); } TEST(Handle, InitializationFailure) { diff --git a/test/uvw/util.cpp b/test/uvw/util.cpp index d5a7bab6..513a8407 100644 --- a/test/uvw/util.cpp +++ b/test/uvw/util.cpp @@ -27,8 +27,8 @@ TEST(Util, Utilities) { ASSERT_TRUE(static_cast(passwd)); ASSERT_FALSE(passwd.username().empty()); ASSERT_FALSE(passwd.homedir().empty()); - ASSERT_NO_THROW(passwd.uid()); - ASSERT_NO_THROW(passwd.gid()); + ASSERT_NO_THROW([[maybe_unused]] auto uid = passwd.uid()); + ASSERT_NO_THROW([[maybe_unused]] auto gid = passwd.gid()); #ifndef _MSC_VER // libuv returns a null string for the shell on Windows