From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id EA4B53858031; Fri, 23 Jun 2023 16:12:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA4B53858031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687536741; bh=1HNTnTGj81xBEuqK8Ol6hYY6WPhJrFm8gDOjSQbkPsI=; h=From:To:Subject:Date:From; b=gnuOVKawfhwX29YUT4RknBX3tYZ86goFKnEg9B33CURG76dG/vQE//ryo60g9vmrb 6S9W6zmbh5RlYqh1ZRw7CVwBbmvSYq1wsO21YIcvaFJ8V0pIvyQeOEUxBoRDii5WkU ZkJDaqGUV9xGbnJ/aFJbD5mAmLNHwjujfWlw4Ojs= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-11460] libstdc++: Fix build error in X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: f0f8cb2a9f6ec5fdfebb0ee15064133d36a91d64 X-Git-Newrev: 61dc491950863d0b441ddd3f9d609b83a01deaf7 Message-Id: <20230623161221.EA4B53858031@sourceware.org> Date: Fri, 23 Jun 2023 16:12:21 +0000 (GMT) List-Id: https://gcc.gnu.org/g:61dc491950863d0b441ddd3f9d609b83a01deaf7 commit r10-11460-g61dc491950863d0b441ddd3f9d609b83a01deaf7 Author: Jonathan Wakely Date: Fri Sep 11 14:51:36 2020 +0100 libstdc++: Fix build error in libstdc++-v3/ChangeLog: * include/bits/regex_error.h (__throw_regex_error): Fix parameter declaration and use reserved attribute names. (cherry picked from commit 29216f56d002982f10c33056f4b3d7f07e164122) Diff: --- libstdc++-v3/include/bits/regex_error.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/bits/regex_error.h b/libstdc++-v3/include/bits/regex_error.h index a5b553862ce..b40351a39cc 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