From 0094b503f618e2725c37101b554bdee07cafb827 Mon Sep 17 00:00:00 2001 From: jyelon Date: Tue, 22 Mar 2022 13:22:42 -0400 Subject: [PATCH] Fix warning about no such builtin --- luprex/core/cpp/lpxclient.cpp | 2 +- luprex/core/cpp/source.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/luprex/core/cpp/lpxclient.cpp b/luprex/core/cpp/lpxclient.cpp index 3626e3ce..a87da0a3 100644 --- a/luprex/core/cpp/lpxclient.cpp +++ b/luprex/core/cpp/lpxclient.cpp @@ -203,7 +203,7 @@ public: void receive_diff_from_server(StreamBuffer *sb) { world_to_synchronous(); try { - DebugCollector dbc("patch_everything"); + DebugCollector dbc(""); int64_t nactor = world_->patch_everything(sb, &dbc); if (nactor != actor_id_) change_actor_id(nactor); dbc.dump(stdostream()); diff --git a/luprex/core/cpp/source.cpp b/luprex/core/cpp/source.cpp index 169f4acb..81117469 100644 --- a/luprex/core/cpp/source.cpp +++ b/luprex/core/cpp/source.cpp @@ -480,7 +480,7 @@ void SourceDB::register_lua_builtins() { } if (reg->get_func() == nullptr) { if (builtin == nullptr) { - if ((!reg->get_sandbox()) || (reg->get_args() != nullptr)) { + if (!reg->get_sandbox()) { std::cerr << "No such builtin function: " << classname << " " << funcname << std::endl; } } else {