diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-09-11 14:51:36 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-09-11 14:52:40 +0100 |
commit | 29216f56d002982f10c33056f4b3d7f07e164122 (patch) | |
tree | 588a4265b1d4f08687b9e408bb69837f52432f3c | |
parent | e05ff30078e80869f2bf3af6dbdbea134c252158 (diff) | |
download | gcc-29216f56d002982f10c33056f4b3d7f07e164122.zip gcc-29216f56d002982f10c33056f4b3d7f07e164122.tar.gz gcc-29216f56d002982f10c33056f4b3d7f07e164122.tar.bz2 |
libstdc++: Fix build error in <bits/regex_error.h>
libstdc++-v3/ChangeLog:
* include/bits/regex_error.h (__throw_regex_error): Fix
parameter declaration and use reserved attribute names.
-rw-r--r-- | libstdc++-v3/include/bits/regex_error.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/regex_error.h b/libstdc++-v3/include/bits/regex_error.h index 88f3f811..f9c0165 100644 --- a/libstdc++-v3/include/bits/regex_error.h +++ b/libstdc++-v3/include/bits/regex_error.h @@ -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 |