]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove C++ style comments from string3.h
authorAdhemerval Zanella <adhemerval.zanella@linaro.com>
Thu, 29 Sep 2016 19:02:16 +0000 (12:02 -0700)
committerAdhemerval Zanella <adhemerval.zanella@linaro.com>
Fri, 30 Sep 2016 00:16:41 +0000 (17:16 -0700)
The new check-installed-headers rule check now complains with C++
comment from string3.h with:

../string/bits/string3.h:129:1: error: C++ style comments are not allowed in ISO C90
 // XXX We have no corresponding builtin yet.

Let use old C style comment to make compiler happy in old modes.

Tested on x86_64.

* string/bits/string3.h: Remove C++ style comments.

ChangeLog
string/bits/string3.h

index 9b0bff1b92bdbd5fdf32dfacbe5a2085ea4c0932..d922c8afabbc422708082cb95cb68e9dc025dcce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * string/bits/string3.h: Remove C++ style comments.
+
 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
        * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
index dd8db68aa296d734490bb95299cd8e3fce1238d5..8f13b65fa63e853fea313c1164b1807d9d99f3d1 100644 (file)
@@ -126,7 +126,7 @@ __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
 }
 
-// XXX We have no corresponding builtin yet.
+/* XXX We have no corresponding builtin yet.  */
 extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n,
                            size_t __destlen) __THROW;
 extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char *__src,