]> sourceware.org Git - newlib-cygwin.git/commitdiff
libc/include/inttypes.h: Remove parameter name
authorTorbjörn SVENSSON <torbjorn.svensson@st.com>
Thu, 1 Oct 2020 10:44:43 +0000 (12:44 +0200)
committerJeff Johnston <jjohnstn@redhat.com>
Fri, 2 Oct 2020 21:00:43 +0000 (17:00 -0400)
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 'j' parameter name from
extern intmax_t  imaxabs(intmax_t);

to avoid possible clashes with user code in case someone uses
before including Newlib's inttypes.h (or uses some other conflicting
definition)

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
newlib/libc/include/inttypes.h

index 073215476c49c99ffb166befce9e0a41036eda4b..570ed04817c79118dff494e405fbb4346cc63efd 100644 (file)
@@ -320,7 +320,7 @@ struct _reent;
 extern "C" {
 #endif
 
-extern intmax_t  imaxabs(intmax_t j);
+extern intmax_t  imaxabs(intmax_t);
 extern imaxdiv_t imaxdiv(intmax_t numer, intmax_t denomer);
 extern intmax_t  strtoimax(const char *__restrict, char **__restrict, int);
 extern intmax_t  _strtoimax_r(struct _reent *, const char *__restrict, char **__restrict, int);
This page took 0.034455 seconds and 5 git commands to generate.