]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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, 23 Jun 2023 12:19:23 +0000 (13:19 +0100)
libstdc++-v3/ChangeLog:

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

(cherry picked from commit 29216f56d002982f10c33056f4b3d7f07e164122)

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

index a5b553862ce2513b214e3e0b24d27d0d082861ab..b40351a39ccb3a39a9890ef6c65cf2dcf18f084b 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