Fix or suppress clang-tidy warnings (#8254)

This commit is contained in:
Tyler Veness
2025-09-25 21:28:04 -07:00
committed by GitHub
parent 5003939b64
commit ab53d51c6f
28 changed files with 62 additions and 56 deletions

View File

@@ -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");