Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/include elide gcc-8 shadow warnings.



details:   https://anonhg.NetBSD.org/src/rev/132229937baa
branches:  trunk
changeset: 966357:132229937baa
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 27 21:27:10 2019 +0000

description:
elide gcc-8 shadow warnings.

diffstat:

 sys/arch/alpha/include/fenv.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 6ee34759d5aa -r 132229937baa sys/arch/alpha/include/fenv.h
--- a/sys/arch/alpha/include/fenv.h     Sun Oct 27 21:26:04 2019 +0000
+++ b/sys/arch/alpha/include/fenv.h     Sun Oct 27 21:27:10 2019 +0000
@@ -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 <das%FreeBSD.ORG@localhost>
@@ -72,6 +72,11 @@
 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 @@
        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 *);



Home | Main Index | Thread Index | Old Index