libstdc++: Fix build error in <bits/regex_error.h>
authorJonathan Wakely <jwakely@redhat.com>
Fri, 11 Sep 2020 13:51:36 +0000 (14:51 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 11 Sep 2020 13:52:40 +0000 (14:52 +0100)
libstdc++-v3/ChangeLog:

* include/bits/regex_error.h (__throw_regex_error): Fix
parameter declaration and use reserved attribute names.

libstdc++-v3/include/bits/regex_error.h

index 88f3f8114a4388d6f504aef382dae4c678defb1a..f9c01650caa12f4e7935c64908f5644afadc7fde 100644 (file)
@@ -167,8 +167,9 @@ namespace regex_constants
   __throw_regex_error(regex_constants::error_type __ecode);
 
   inline void
-  __throw_regex_error(regex_constants::error_type __ecode __attribute__((unused)),
-                     const char* __what__attribute__((unused)))
+  __throw_regex_error(regex_constants::error_type __ecode
+                       __attribute__((__unused__)),
+                     const char* __what __attribute__((__unused__)))
   { _GLIBCXX_THROW_OR_ABORT(regex_error(__ecode, __what)); }
 
 _GLIBCXX_END_NAMESPACE_VERSION