Ver Fonte

fix: reg_softkb的潜在编译警告

Wendal Chen há 1 ano atrás
pai
commit
24bb5daa80
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      components/soft_keyboard/luat_lib_softkeyboard.c

+ 1 - 1
components/soft_keyboard/luat_lib_softkeyboard.c

@@ -107,7 +107,7 @@ static const rotable_Reg_t reg_softkb[] =
 {
     { "init",          ROREG_FUNC(l_softkb_init)},
     { "deinit",        ROREG_FUNC(l_softkb_deinit)},
-	{ NULL,            {}}
+	{ NULL,            ROREG_INT(0)}
 };
 
 LUAMOD_API int luaopen_softkb( lua_State *L ) {