libuwsc: fix compilation with GCC11
authorRosen Penev <rosenp@gmail.com>
Wed, 7 Jul 2021 04:03:26 +0000 (21:03 -0700)
committerRosen Penev <rosenp@gmail.com>
Sat, 25 Sep 2021 04:05:44 +0000 (21:05 -0700)
Bad if identation is now an error.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libuwsc/patches/010-gcc11.patch [new file with mode: 0644]

diff --git a/libs/libuwsc/patches/010-gcc11.patch b/libs/libuwsc/patches/010-gcc11.patch
new file mode 100644 (file)
index 0000000..5a1fd5b
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/lua/uwsc_lua.c
++++ b/src/lua/uwsc_lua.c
+@@ -177,7 +177,7 @@ static int uwsc_lua_on(lua_State *L)
+     else
+         luaL_argcheck(L, false, 2, "available event name: open message error close");
+-      return 0;
++    return 0;
+ }
+ static int __uwsc_lua_send(lua_State *L, int op)