[Libwebsockets] Next lws release coming up

Per Bothner per at bothner.com
Fri Apr 27 17:02:37 CEST 2018


On 04/26/2018 06:07 PM, Andy Green wrote:
> It's not the "right" solution, since info should be const (I am going through making it const atm).

There are still build errors:

[ 33%] Building C object CMakeFiles/websockets.dir/lib/plat/lws-plat-unix.c.o
/home/bothner/Software/libwebsockets/lib/plat/lws-plat-unix.c: In function ‘lws_plat_drop_app_privileges’:
/home/bothner/Software/libwebsockets/lib/plat/lws-plat-unix.c:451:40: error: passing argument 2 of ‘_lws_plat_apply_caps’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
     _lws_plat_apply_caps(CAP_PERMITTED, info->caps, info->count_caps);
                                         ^~~~
/home/bothner/Software/libwebsockets/lib/plat/lws-plat-unix.c:418:1: note: expected ‘cap_value_t * {aka int *}’ but argument is of type ‘const cap_value_t * {aka const int *}’
  _lws_plat_apply_caps(int mode, cap_value_t *cv, int count)
  ^~~~~~~~~~~~~~~~~~~~
/home/bothner/Software/libwebsockets/lib/plat/lws-plat-unix.c:461:40: error: passing argument 2 of ‘_lws_plat_apply_caps’ discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
     _lws_plat_apply_caps(CAP_EFFECTIVE, info->caps, info->count_caps);
                                         ^~~~
/home/bothner/Software/libwebsockets/lib/plat/lws-plat-unix.c:418:1: note: expected ‘cap_value_t * {aka int *}’ but argument is of type ‘const cap_value_t * {aka const int *}’
  _lws_plat_apply_caps(int mode, cap_value_t *cv, int count)
  ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/websockets.dir/build.make:336: CMakeFiles/websockets.dir/lib/plat/lws-plat-unix.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:354: CMakeFiles/websockets.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the Libwebsockets mailing list