public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH, applied] ir: Fix compilation error with GCC 4.8.5
@ 2023-10-20 15:45 Dodji Seketeli
  0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2023-10-20 15:45 UTC (permalink / raw)
  To: libabigail; +Cc: dodji

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-20 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 15:45 [PATCH, applied] ir: Fix compilation error with GCC 4.8.5 Dodji Seketeli

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).