Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#5069) libelfin: fix build with Clang 10
* Dummy * Fix copilation with Clang 10 * Update recipes/libelfin/all/conandata.yml Co-authored-by: Javier G. Sogo <jgsogo@gmail.com> Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
commit 8d00031176c2025e53336992c1575d73b4f66b2b (smertig/fix_wrong_const) | ||
Author: Smertig <akaraevz@mail.ru> | ||
Date: Sun Sep 6 20:19:00 2020 +0300 | ||
|
||
Remove const qualifier from setter | ||
|
||
diff --git a/elf/data.hh b/elf/data.hh | ||
index ed5c7a1..4a60944 100644 | ||
--- a/elf/data.hh | ||
+++ b/elf/data.hh | ||
@@ -553,7 +553,7 @@ struct Sym<Elf64, Order> | ||
return (stb)(info >> 4); | ||
} | ||
|
||
- void set_binding(stb v) const | ||
+ void set_binding(stb v) | ||
{ | ||
info = (info & 0xF) | ((unsigned char)v << 4); | ||
} |