From 960c342b4acf02ab5708dfdcd7f36e86644e9a51 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 29 May 2012 00:41:27 +0200 Subject: [PATCH] lua: add a prototype for luaopen_ubus so that -Wmissing-declarations can be enabled --- lua/ubus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/ubus.c b/lua/ubus.c index 85c1266..9f2a6e9 100644 --- a/lua/ubus.c +++ b/lua/ubus.c @@ -373,6 +373,8 @@ static const luaL_Reg ubus[] = { { NULL, NULL }, }; +/* avoid missing prototype warning */ +int luaopen_ubus(lua_State *L); int luaopen_ubus(lua_State *L) -- 2.25.1