mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Fix or suppress clang-tidy warnings (#8254)
This commit is contained in:
@@ -11,14 +11,11 @@
|
||||
|
||||
int main() {
|
||||
auto inst = nt::GetDefaultInstance();
|
||||
nt::AddLogger(
|
||||
inst,
|
||||
[](const nt::LogMessage& msg) {
|
||||
std::fputs(msg.message.c_str(), stderr);
|
||||
std::fputc('\n', stderr);
|
||||
},
|
||||
0, UINT_MAX);
|
||||
nt::StartServer(inst, "persistent.ini", "", 10000);
|
||||
nt::AddLogger(inst, 0, UINT_MAX, [](const nt::Event& event) {
|
||||
std::fputs(event.GetLogMessage()->message.c_str(), stderr);
|
||||
std::fputc('\n', stderr);
|
||||
});
|
||||
nt::StartServer(inst, "persistent.ini", "", 10000, 10001);
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
|
||||
auto foo = nt::GetEntry(inst, "/foo");
|
||||
|
||||
Reference in New Issue
Block a user