Use some more C++20 features (#1231)

This commit is contained in:
Rangi
2023-11-11 20:47:53 -05:00
committed by GitHub
parent dde9f2bb79
commit 31529524c8
4 changed files with 13 additions and 17 deletions

View File

@@ -402,7 +402,7 @@ int main(int argc, char *argv[])
parseScrambleSpec(musl_optarg);
break;
case 's':
// FIXME: nobody knows what this does, figure it out
// TODO: implement "smart linking" with `-s`
(void)musl_optarg;
warning(NULL, 0, "Nobody has any idea what `-s` does");
break;

View File

@@ -330,8 +330,8 @@ static int compareSymbols(void const *a, void const *b)
char const *sym1_name = sym1->sym->name;
char const *sym2_name = sym2->sym->name;
bool sym1_local = !!strchr(sym1_name, '.');
bool sym2_local = !!strchr(sym2_name, '.');
bool sym1_local = strchr(sym1_name, '.');
bool sym2_local = strchr(sym2_name, '.');
if (sym1_local != sym2_local) {
size_t sym1_len = strlen(sym1_name);