[OpenWrt-Devel] [PATCH uci 2/5] lua: add missing forward declaration

Petr Štetiar ynezz at true.cz
Sat Dec 7 17:52:54 EST 2019


Fixes following warning reported by clang-10:

  lua/uci.c:1050:1: error: no previous declaration for ‘luaopen_uci’ [-Werror=missing-declarations]

Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 lua/uci.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lua/uci.c b/lua/uci.c
index ecfb2998d749..196a25bcf08a 100644
--- a/lua/uci.c
+++ b/lua/uci.c
@@ -36,6 +36,8 @@
 
 #if !defined LUA_VERSION_NUM || LUA_VERSION_NUM==501
 
+int luaopen_uci(lua_State *L);
+
 /*
  * ** Adapted from Lua 5.2.0
  * */

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list