lua: add a prototype for luaopen_ubus so that -Wmissing-declarations can be enabled
[project/ubus.git] / lua / ubus.c
index 85c1266..9f2a6e9 100644 (file)
@@ -373,6 +373,8 @@ static const luaL_Reg ubus[] = {
        { NULL, NULL },
 };
 
        { NULL, NULL },
 };
 
+/* avoid missing prototype warning */
+int luaopen_ubus(lua_State *L);
 
 int
 luaopen_ubus(lua_State *L)
 
 int
 luaopen_ubus(lua_State *L)