[oe-commits] [meta-openembedded] 02/02: librelp: Pass Wno-error to compiler

git at git.openembedded.org git at git.openembedded.org
Sat Jul 20 05:15:02 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit a0100b1d01814e39cbf0b5a927ec6fc2c2651cda
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Fri Jul 19 22:05:03 2019 -0700

    librelp: Pass Wno-error to compiler
    
    After autoconf-archive was upgraded to 2019.01.06 it started to add
    extra warning flags via WARN_CFLAGS along with -Werror which means that
    now compiler could be stricter and break the build if any of the new
    warnings are flagged
    
    The difference is
    
    old
    
    WARN_CFLAGS='-fno-strict-aliasing  -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Werror -Wno-suggest-attribute=format -Wunused-parameter -Wmissing-field-initializers'
    
    new
    
    WARN_CFLAGS='-fno-strict-aliasing  -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -W [...]
    
    Hence we started seing build failure like https://errors.yoctoproject.org/Errors/Details/252684/
    
    This fix just turns off warnings-as-errors so build can still go on, if
    we need to fix the warnings they still are present in log.do_compile
    
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Cc: Oleksandr Kravchuk <open.source at oleksandr-kravchuk.com>
    Cc: Robert Yang <liezhi.yang at windriver.com>
---
 meta-oe/recipes-extended/rsyslog/librelp_1.4.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-extended/rsyslog/librelp_1.4.0.bb b/meta-oe/recipes-extended/rsyslog/librelp_1.4.0.bb
index 9e57dd5..16c63a7 100644
--- a/meta-oe/recipes-extended/rsyslog/librelp_1.4.0.bb
+++ b/meta-oe/recipes-extended/rsyslog/librelp_1.4.0.bb
@@ -14,3 +14,5 @@ SRCREV = "e96443dda3c080fa991decec26bc4ac98d24b9a2"
 S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig
+
+CPPFLAGS += "-Wno-error"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list