Skip to contentSkip to conversation

lxc: Disable warnings as errors

PATCH Bruce Ashfield 1 participant 1 message Aug 27, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

merged.

Bruce

Quoted 27 lines · Khem Raj

Instead of disabling particular warnings, its better to use configure switch, since some of these warnings could be compiler specific

---
 recipes-containers/lxc/lxc_4.0.4.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
recipes-containers/lxc/lxc_4.0.4.bb +1 -4
index a8f9394..f526ab9 100644
@@ -67,9 +67,7 @@ EXTRA_OECONF += "--with-init-script=\
 ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit,', '', d)}\
 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 
-EXTRA_OECONF += "--enable-log-src-basename"
-
-CFLAGS_append = " -Wno-error=deprecated-declarations -Wno-error=stringop-overflow"
+EXTRA_OECONF += "--enable-log-src-basename --disable-werror"
 
 PACKAGECONFIG ??= "templates \
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
--

2.28.0

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II