Skip to content

Commit e973ab1

Browse files
authored
[libc][NFC] Fix few warnings in tests. (#81262)
``` /usr/local/google/home/lntue/experiment/llvm/llvm-project/libc/test/src/__support/FPUtil/fpbits_test.cpp:268:2: warning: extra ';' outside of a function is incompatible with C++98 [-Wc++98-compat-extra-semi] }; ^ 1 warning generated. ``` ``` In file included from /usr/local/google/home/lntue/experiment/llvm/llvm-project/libc/test/src/sys/socket/linux/bind_test.cpp:17: /usr/local/google/home/lntue/experiment/llvm/llvm-project/libc/test/UnitTest/Test.h:17:9: warning: 'libc_make_test_file_path' macro redefined [-Wmacro-redefined] #define libc_make_test_file_path(file_name) (file_name) ^ /usr/local/google/home/lntue/experiment/llvm/llvm-project/libc/test/UnitTest/LibcTest.h:20:9: note: previous definition is here #define libc_make_test_file_path(file_name) \ ^ 1 warning generated. ```
1 parent 088773b commit e973ab1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

libc/test/src/__support/FPUtil/fpbits_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ template <typename T> constexpr auto make(Sign sign, FP fp) {
265265
case FP::QUIET_NAN:
266266
return T::quiet_nan(sign);
267267
}
268-
};
268+
}
269269

270270
// Tests all properties for all types of float.
271271
TYPED_TEST(LlvmLibcFPBitsTest, Properties, FPTypes) {

libc/test/src/sys/socket/linux/bind_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "src/unistd/close.h"
1414

1515
#include "src/errno/libc_errno.h"
16-
#include "test/UnitTest/LibcTest.h"
1716
#include "test/UnitTest/Test.h"
1817

1918
#include <sys/socket.h> // For AF_UNIX and SOCK_DGRAM

0 commit comments

Comments
 (0)