package/libwebsockets: disable -Werror
Disable -Werror (enabled by default) through DISABLE_WERROR which is
available since version 4.1.0 and
c9c152baba
to avoid the following build failure with gcc 4.8 and libev:
/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-1/output-1/build/libwebsockets-4.3.1/lib/event-libs/libev/libev.c: In function 'lws_ev_hrtimer_cb':
/usr/lfs/hdd_v1/rc-buildroot-test/scripts/instance-1/output-1/build/libwebsockets-4.3.1/lib/event-libs/libev/libev.c:44:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
ev_timer_set(&ptpr->hrtimer, ((float)us) / 1000000.0, 0);
^
Fixes:
- http://autobuild.buildroot.org/results/75ddbd2e0b058b69a99a2a2f01c62dedad1199c0
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
8b51205638
commit
31962ae938
@ -11,6 +11,7 @@ LIBWEBSOCKETS_LICENSE_FILES = LICENSE
|
||||
LIBWEBSOCKETS_DEPENDENCIES = zlib
|
||||
LIBWEBSOCKETS_INSTALL_STAGING = YES
|
||||
LIBWEBSOCKETS_CONF_OPTS = \
|
||||
-DDISABLE_WERROR=ON \
|
||||
-DLWS_WITHOUT_TESTAPPS=ON \
|
||||
-DLWS_IPV6=ON \
|
||||
-DLWS_UNIX_SOCK=ON \
|
||||
|
Loading…
Reference in New Issue
Block a user