Browse Source

fix: reg_softkb的潜在编译警告

Wendal Chen 10 months ago
parent
commit
24bb5daa80
1 changed files with 1 additions and 1 deletions
  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 ) {