Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/include disable -Wshadow because in c99 mode t...



details:   https://anonhg.NetBSD.org/src/rev/7df703033db4
branches:  trunk
changeset: 460518:7df703033db4
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 26 17:51:49 2019 +0000

description:
disable -Wshadow because in c99 mode these get marked as builtins.

diffstat:

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

diffs (32 lines):

diff -r e07493b160ad -r 7df703033db4 sys/arch/m68k/include/fenv.h
--- a/sys/arch/m68k/include/fenv.h      Sat Oct 26 17:50:18 2019 +0000
+++ b/sys/arch/m68k/include/fenv.h      Sat Oct 26 17:51:49 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fenv.h,v 1.7 2017/09/13 09:55:35 phx Exp $     */
+/*     $NetBSD: fenv.h,v 1.8 2019/10/26 17:51:49 christos Exp $        */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -108,6 +108,11 @@
 
 __BEGIN_DECLS
 
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
 __fenv_static inline int
 feclearexcept(int __excepts)
 {
@@ -259,6 +264,10 @@
        return 0;
 }
 
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic pop
+#endif
+
 #if defined(_NETBSD_SOURCE) || defined(_GNU_SOURCE)
 
 __fenv_static inline int



Home | Main Index | Thread Index | Old Index