mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Use some more C++20 features (#1231)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user