Module Name: src
Committed By: christos
Date: Sun Oct 27 21:27:10 UTC 2019
Modified Files:
src/sys/arch/alpha/include: fenv.h
Log Message:
elide gcc-8 shadow warnings.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/alpha/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/alpha/include/fenv.h
diff -u src/sys/arch/alpha/include/fenv.h:1.2 src/sys/arch/alpha/include/fenv.h:1.3
--- src/sys/arch/alpha/include/fenv.h:1.2 Wed Aug 24 02:22:20 2016
+++ src/sys/arch/alpha/include/fenv.h Sun Oct 27 17:27:10 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.h,v 1.2 2016/08/24 06:22:20 christos Exp $ */
+/* $NetBSD: fenv.h,v 1.3 2019/10/27 21:27:10 christos Exp $ */
/*-
* Copyright (c) 2004-2005 David Schultz <[email protected]>
@@ -72,6 +72,11 @@ __BEGIN_DECLS
extern const fenv_t __fe_dfl_env;
#define FE_DFL_ENV (&__fe_dfl_env)
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
static __inline int
feclearexcept(int __excepts)
{
@@ -169,6 +174,10 @@ fesetround(int __round)
return 0;
}
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic pop
+#endif
+
int fegetenv(fenv_t *);
int feholdexcept(fenv_t *);
int fesetenv(const fenv_t *);