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

This commit is contained in:
christos 2019-10-26 17:51:49 +00:00
parent 292e9d0303
commit f3edc77c31

View File

@ -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 @@ typedef struct {
__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 @@ 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