ir: Fix compilation error with GCC 4.8.5

* 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>
This commit is contained in:
Dodji Seketeli 2023-10-20 17:15:57 +02:00
parent 6ec8e34c32
commit 306056da14

View File

@ -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();