FdTest - fix some compile time warnings
This fixes a number of warnings of the form:
[ 98% 1866/1904] //system/netd/libnetdutils:netdutils_test clang-tidy FdTest.cpp [x86]
//aosp/system/netd/libnetdutils/FdTest.cpp:105:35: warning: 'u1' used after it was moved [bugprone-use-after-move]
EXPECT_FALSE(isWellFormed(u1));
^
//aosp/system/netd/libnetdutils/FdTest.cpp:104:18: note: move occurred here
UniqueFd u2(std::move(u1));
^
based on searching for "EXPECT_FALSE(isWellFormed(" in this file.
The warnings are correct, but this is precisely testing for this case,
so just disable the warnings.
Test: builds
Bug: 153035880
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ie9cdd64e3acf168f755abfc80654c89e6e36d588
Merged-In: Ie9cdd64e3acf168f755abfc80654c89e6e36d588
1 file changed