From: Dodji Seketeli <dodji@redhat.com>
To: libabigail@sourceware.org
Cc: dodji@redhat.com
Subject: [PATCH, applied] ir: Fix compilation error with GCC 4.8.5
Date: Fri, 20 Oct 2023 17:45:44 +0200 [thread overview]
Message-ID: <864jilthzr.fsf@redhat.com> (raw)
Hello,
* src/abg-ir.cc (enum_type_decl::get_sorted_enumerators): Add
const to parameters of the lambda function.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to master.
---
src/abg-ir.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/abg-ir.cc b/src/abg-ir.cc
index 79aec35..4a652b0 100644
--- a/src/abg-ir.cc
+++ b/src/abg-ir.cc
@@ -18960,8 +18960,8 @@ enum_type_decl::get_sorted_enumerators() const
std::sort(priv_->sorted_enumerators_.begin(),
priv_->sorted_enumerators_.end(),
- [](enum_type_decl::enumerator& l,
- enum_type_decl::enumerator& r)
+ [](const enum_type_decl::enumerator& l,
+ const enum_type_decl::enumerator& r)
{
if (l.get_name() == r.get_name())
return l.get_value() < r.get_value();
--
1.8.3.1
--
Dodji
reply other threads:[~2023-10-20 15:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864jilthzr.fsf@redhat.com \
--to=dodji@redhat.com \
--cc=libabigail@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).