package/libuwsc: fix build with gcc 11
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 4 Aug 2021 09:45:05 +0000 (11:45 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 4 Aug 2021 21:18:08 +0000 (23:18 +0200)
commit2b5dc4e32ed1d1f125b64c6cdaf81db4f320400f
tree41ecfd61a60bf2cb0b352b1620e537e7d4ffcd95
parent1478126052566c5c5f2e360cb1d7b45c99c41dcb
package/libuwsc: fix build with gcc 11

Fix the following build failure with gcc 11:

/tmp/instance-1/output-1/build/libuwsc-3.3.5/src/lua/uwsc_lua.c: In function 'uwsc_lua_on':
/tmp/instance-1/output-1/build/libuwsc-3.3.5/src/lua/uwsc_lua.c:177:5: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
  177 |     else
      |     ^~~~
/tmp/instance-1/output-1/build/libuwsc-3.3.5/src/lua/uwsc_lua.c:180:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
  180 |         return 0;
      |         ^~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/1b031667e6d184493ea55ea6630272af4e475375

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/libuwsc/0002-fix-bad-indentation.patch [new file with mode: 0644]