Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: "André Draszik" <git@andred.net>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-java][PATCH 6/9] openjdk-8: gcc-8 fix #2: silence build warnings/errors (return-type)
Date: Mon, 13 Aug 2018 11:09:33 +0100	[thread overview]
Message-ID: <20180813100936.23663-7-git@andred.net> (raw)
In-Reply-To: <20180813100936.23663-1-git@andred.net>

From: André Draszik <andre.draszik@jci.com>

Similar to the patch just reverted, we wilence the build warnings
regarding return type of functions, but we only do this for gcc versions
where it matters, now that our infrastructure for doing so works again:

    | <<PKGBUILDDIR>>/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:223:32: error: control reaches end of non-void function [-Werror=return-type]
    |  #define BREAKPOINT ::breakpoint()
    |                     ~~~~~~~~~~~~^~
    | <<PKGBUILDDIR>>/hotspot/src/share/vm/utilities/debug.hpp:192:3: note: in expansion of macro 'BREAKPOINT'
    |    BREAKPOINT;                                                                \
    |    ^~~~~~~~~~
    | <<PKGBUILDDIR>>/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp:197:2: note: in expansion of macro 'ShouldNotReachHere'
    |   ShouldNotReachHere();
    |   ^~~~~~~~~~~~~~~~~~
    etc.

Signed-off-by: André Draszik <andre.draszik@jci.com>
---
 recipes-core/openjdk/openjdk-8-common.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index fb97e97..77d905d 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -216,6 +216,7 @@ EXTRA_OECONF_append = "\
 # of these changes.
 FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
 FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
+FLAGS_GCC8 = "-Wno-error=return-type"
 
 # All supported cross compilers support the compiler flags that were
 # added to make compilation with gcc6 work. But the host compiler for
-- 
2.18.0



  parent reply	other threads:[~2018-08-13 10:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-13 10:09 [meta-java] OpenJDK-8 fixes and updates André Draszik
2018-08-13 10:09 ` [meta-java][PATCH 1/9] gitignore: ignore new python byte-code files André Draszik
2018-08-13 10:09 ` [meta-java][PATCH 2/9] openjdk-8: speed-up do_install() (pack200) André Draszik
2018-08-13 10:09 ` [meta-java][PATCH 3/9] openjdk-8: remove superfluous compiler flag (-std=gnu++98) André Draszik
2018-08-13 10:09 ` [meta-java][PATCH 4/9] openjdk-8: fix infrastructure for version host gcc != cross gcc (again) André Draszik
2018-08-13 13:53   ` Richard Leitner
2018-08-13 10:09 ` [meta-java][PATCH 5/9] openjdk-8: gcc-8 fix #1: backport patch to fix misuses of strncpy/strncat André Draszik
2018-08-13 10:09 ` André Draszik [this message]
2018-08-13 13:03   ` [meta-java][PATCH 6/9] openjdk-8: gcc-8 fix #2: silence build warnings/errors (return-type) Richard Leitner
2018-08-13 14:25     ` André Draszik
2018-08-13 10:09 ` [meta-java][PATCH 7/9] Revert "openjdk-8: fix build for gcc8.x" André Draszik
2018-08-13 10:09 ` [meta-java][PATCH 8/9] openjdk-8: gcc-8 fix #3: working binaries André Draszik
2018-08-13 10:09 ` [meta-java][PATCH 9/9] openjdk-8: update to 8u172b11 André Draszik
2018-08-13 10:41 ` [meta-java] OpenJDK-8 fixes and updates Richard Leitner
2018-08-13 14:53 ` Richard Leitner

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=20180813100936.23663-7-git@andred.net \
    --to=git@andred.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /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