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

Chropin Hu chropinhu at gmail.com
Mon Mar 5 02:55:40 CET 2018


It`s fixed!
Thank you!

> 在 2018年3月2日,下午9:13,Andy Green <andy at warmcat.com> 写道:
> 
> 
> 
> 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