[Libwebsockets] build failure - f77e6e33d1

Michael Haberler mail17 at mah.priv.at
Wed May 21 23:24:25 CEST 2014

commit f77e6e33d110a6692cfb50c90efd77ffc376c766
Author: kolis <g1m0.kolis at gmail.com>
Date:   Mon May 19 14:40:50 2014 +0200
    Partial send handling
    AG removed what looked like redundant set eff_buf.token_len <- n

gcc --version
gcc (Debian 4.8.2-16) 4.8.2
debian jessie

build fails with:

[ 36%] Building C object CMakeFiles/websockets.dir/lib/extension.c.o
In file included from /home/mah/src/libwebsockets-warmcat/lib/private-libwebsockets.h:170:0,
                 from /home/mah/src/libwebsockets-warmcat/lib/extension.c:1:
/home/mah/src/libwebsockets-warmcat/lib/extension.c: In function ‘lws_issue_raw_ext_access’:
/home/mah/src/libwebsockets-warmcat/lib/libwebsockets.h:122:34: error: ‘n’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 #define lwsl_parser(...) _lws_log(LLL_PARSER, __VA_ARGS__)
/home/mah/src/libwebsockets-warmcat/lib/extension.c:104:6: note: ‘n’ was declared here
  int n;
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/websockets.dir/lib/extension.c.o] Error 1
make[1]: *** [CMakeFiles/websockets.dir/all] Error 2
make: *** [all] Error 2

- Michael

More information about the Libwebsockets mailing list