Module Name: src Committed By: christos Date: Wed Oct 30 02:44:29 UTC 2019
Modified Files: src/sys/arch/powerpc/include: fenv.h Log Message: do the ignore builtin dance for gcc-8 To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/powerpc/include/fenv.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/include/fenv.h diff -u src/sys/arch/powerpc/include/fenv.h:1.5 src/sys/arch/powerpc/include/fenv.h:1.6 --- src/sys/arch/powerpc/include/fenv.h:1.5 Thu Apr 19 17:50:07 2018 +++ src/sys/arch/powerpc/include/fenv.h Tue Oct 29 22:44:29 2019 @@ -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 <d...@freebsd.org> @@ -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