Module Name: src Committed By: christos Date: Tue Oct 29 04:55:36 UTC 2019
Modified Files: src/sys/arch/mips/include: fenv.h Log Message: do the pragma dance to avoid -Wshadow To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/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/mips/include/fenv.h diff -u src/sys/arch/mips/include/fenv.h:1.4 src/sys/arch/mips/include/fenv.h:1.5 --- src/sys/arch/mips/include/fenv.h:1.4 Wed Mar 22 19:11:09 2017 +++ src/sys/arch/mips/include/fenv.h Tue Oct 29 00:55:36 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: fenv.h,v 1.4 2017/03/22 23:11:09 chs Exp $ */ +/* $NetBSD: fenv.h,v 1.5 2019/10/29 04:55:36 christos Exp $ */ /*- * Copyright (c) 2004-2005 David Schultz <d...@freebsd.org> @@ -86,6 +86,11 @@ __wfs(fpu_control_t __fpsr) __asm __volatile("ctc1 %0,$31" : : "r" (__fpsr)); } +#if __GNUC_PREREQ__(8, 0) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow" +#endif + __fenv_static inline int feclearexcept(int __excepts) { @@ -201,6 +206,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