From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2134) id 7EFD23952C1C; Sat, 26 Sep 2020 02:54:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EFD23952C1C Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jeff Johnston To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] libc/include/math.h: Remove parameter name X-Act-Checkin: newlib-cygwin X-Git-Author: Christophe Lyon X-Git-Refname: refs/heads/master X-Git-Oldrev: 648365e0e990489ecff21af17b743e74417aab3b X-Git-Newrev: 4c49accf8997da21be19be0396b2a88f33b9f949 Message-Id: <20200926025405.7EFD23952C1C@sourceware.org> Date: Sat, 26 Sep 2020 02:54:05 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2020 02:54:05 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=4c49accf8997da21be19be0396b2a88f33b9f949 commit 4c49accf8997da21be19be0396b2a88f33b9f949 Author: Christophe Lyon Date: Mon Sep 21 15:22:30 2020 +0000 libc/include/math.h: Remove parameter name As discussed in GCC bug 97088 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97088), parameters in prototypes of library functions should use reserved names, or no name at all. This patch removes the 'x' parameter name from extern int __isinff (float); extern int __isinfd (double); extern int __isnanf (float); extern int __isnand (double); extern int __fpclassifyf (float); extern int __fpclassifyd (double); extern int __signbitf (float); extern int __signbitd (double); to avoid possible clashes with user code in case someone uses before including Newlib's math.h (or uses some other conflicting definition) Diff: --- newlib/libc/include/math.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index 5e6155cc4..ba1a8a17e 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -201,14 +201,14 @@ extern int isnan (double); # define math_errhandling (_MATH_ERRHANDLING_ERRNO | _MATH_ERRHANDLING_ERREXCEPT) #endif -extern int __isinff (float x); -extern int __isinfd (double x); -extern int __isnanf (float x); -extern int __isnand (double x); -extern int __fpclassifyf (float x); -extern int __fpclassifyd (double x); -extern int __signbitf (float x); -extern int __signbitd (double x); +extern int __isinff (float); +extern int __isinfd (double); +extern int __isnanf (float); +extern int __isnand (double); +extern int __fpclassifyf (float); +extern int __fpclassifyd (double); +extern int __signbitf (float); +extern int __signbitd (double); /* Note: isinf and isnan were once functions in newlib that took double * arguments. C99 specifies that these names are reserved for macros