Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Robert Yang <liezhi.yang@windriver.com>
To: Khem Raj <raj.khem@gmail.com>,
	<openembedded-devel@lists.openembedded.org>
Cc: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Subject: Re: [meta-oe][PATCH] librelp: Pass Wno-error to compiler
Date: Mon, 22 Jul 2019 17:12:53 +0800	[thread overview]
Message-ID: <eddb2c23-cf07-8a70-d763-1200e8f129d5@windriver.com> (raw)
In-Reply-To: <20190720051418.15137-1-raj.khem@gmail.com>

Thanks, it works for me.

// Robert

On 7/20/19 1:14 PM, Khem Raj wrote:
> 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 -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -pedantic -Wunused-parameter -Wmissing-field-initializers -Werror -Wno-suggest-attribute=format -Wunused-parameter -Wmissing-field-initializers'
> 
> 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@gmail.com>
> Cc: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
> Cc: Robert Yang <liezhi.yang@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 9e57dd520d..16c63a7523 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"
> 


      reply	other threads:[~2019-07-22  9:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-20  5:14 [meta-oe][PATCH] librelp: Pass Wno-error to compiler Khem Raj
2019-07-22  9:12 ` Robert Yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eddb2c23-cf07-8a70-d763-1200e8f129d5@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=open.source@oleksandr-kravchuk.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox