[Libwebsockets] test-server-pthreads.c build error

Andy Green andy at warmcat.com
Fri Mar 2 14:13:12 CET 2018



On 03/01/2018 08:56 PM, Chropin Hu wrote:
> Hello All,
>          I meet the following error with this config:
> 
> cmake ../libwebsockets/ -DOPENSSL_ROOT_DIR=/usr/local/ssl-cp 
> -DCMAKE_BUILD_TYPE=DEBUG -DLWS_WITH_LWSWS=1 -DLWS_MAX_SMP=2
> 
> /libwebsockets-master/libwebsockets/test-apps/test-server-pthreads.c:229:16: 
> error: comparison between signed and unsigned integer expressions 
> [-Werror=sign-compare]
>      if (threads > ARRAY_SIZE(pthread_service)) {
>                  ^
> It`s related to the LWS_MAX_SWP param.
> 
> If do not set this param, it do not build the test-server-pthreads.c
> I just fix the build error at local.
> 
> Is it possible to build the test-server-pthreads.c whether 
> set LWS_MAX_SMP or not?

Please give current master a try.

-Andy


> Yours Chropin
> 
> 
> 
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> https://libwebsockets.org/mailman/listinfo/libwebsockets
> 



More information about the Libwebsockets mailing list