Ver Fonte

fix: 清除lib_profiler的警告信息

Wendal Chen há 3 anos atrás
pai
commit
8e6fd8682c
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      components/mempool/profiler/bind/luat_lib_profiler.c

+ 4 - 0
components/mempool/profiler/bind/luat_lib_profiler.c

@@ -2,18 +2,22 @@
 #include "luat_malloc.h"
 #include "luat_malloc.h"
 #include "luat_timer.h"
+#include "luat_profiler.h"
 
 static int l_profiler_start(lua_State *L) {
+    (void)L;
     luat_profiler_start();
     return 0;
 }
 
 static int l_profiler_stop(lua_State *L) {
+    (void)L;
     luat_profiler_stop();
     return 0;
 }
 
 static int l_profiler_print(lua_State *L) {
+    (void)L;
     luat_profiler_print();
     return 0;
 }