do the ignore builtin dance for gcc-8
This commit is contained in:
parent
fea19e49d2
commit
01c63c4fc7
|
@ -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 <das@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
|
||||
|
|
Loading…
Reference in New Issue