[libc-commits] [libc] [libc][NFC] Fix few warnings in tests. (PR #81262)

via libc-commits libc-commits at lists.llvm.org
Fri Feb 9 08:05:33 PST 2024


https://github.com/lntue created https://github.com/llvm/llvm-project/pull/81262

None

>From 0347731172dab29f6bc12cdc7788a3aa3780a819 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Fri, 9 Feb 2024 16:04:40 +0000
Subject: [PATCH] [libc][NFC] Fix few warnings in tests.

---
 libc/test/src/__support/FPUtil/fpbits_test.cpp | 2 +-
 libc/test/src/sys/socket/linux/bind_test.cpp   | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/libc/test/src/__support/FPUtil/fpbits_test.cpp b/libc/test/src/__support/FPUtil/fpbits_test.cpp
index 4504a4f0cfcc7d..b1c4b6691b6eec 100644
--- a/libc/test/src/__support/FPUtil/fpbits_test.cpp
+++ b/libc/test/src/__support/FPUtil/fpbits_test.cpp
@@ -265,7 +265,7 @@ template <typename T> constexpr auto make(Sign sign, FP fp) {
   case FP::QUIET_NAN:
     return T::quiet_nan(sign);
   }
-};
+}
 
 // Tests all properties for all types of float.
 TYPED_TEST(LlvmLibcFPBitsTest, Properties, FPTypes) {
diff --git a/libc/test/src/sys/socket/linux/bind_test.cpp b/libc/test/src/sys/socket/linux/bind_test.cpp
index 305e4889f394e1..e70cbd578290ba 100644
--- a/libc/test/src/sys/socket/linux/bind_test.cpp
+++ b/libc/test/src/sys/socket/linux/bind_test.cpp
@@ -13,7 +13,6 @@
 #include "src/unistd/close.h"
 
 #include "src/errno/libc_errno.h"
-#include "test/UnitTest/LibcTest.h"
 #include "test/UnitTest/Test.h"
 
 #include <sys/socket.h> // For AF_UNIX and SOCK_DGRAM



More information about the libc-commits mailing list