From 01c63c4fc7755280776330b3498a6b2b393bbd25 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 30 Oct 2019 02:44:29 +0000 Subject: [PATCH] do the ignore builtin dance for gcc-8 --- sys/arch/powerpc/include/fenv.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/arch/powerpc/include/fenv.h b/sys/arch/powerpc/include/fenv.h index d2c09b4711f8..eb023882edf1 100644 --- a/sys/arch/powerpc/include/fenv.h +++ b/sys/arch/powerpc/include/fenv.h @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.5 2018/04/19 21:50:07 christos Exp $ */ +/* $NetBSD: fenv.h,v 1.6 2019/10/30 02:44:29 christos Exp $ */ /*- * Copyright (c) 2004-2005 David Schultz @@ -143,6 +143,11 @@ union __fpscr { } __bits; }; +#if __GNUC_PREREQ__(8, 0) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow" +#endif + __fenv_static __inline int feclearexcept(int __excepts) { @@ -273,6 +278,10 @@ feupdateenv(const fenv_t *__envp) return (0); } +#if __GNUC_PREREQ__(8, 0) +#pragma GCC diagnostic pop +#endif + #if defined(_NETBSD_SOURCE) || defined(_GNU_SOURCE) __fenv_static __inline int