mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Fix vacuous comparison warning from 0df45fe
cc65/symentry.c:306:60: warning: address of array 'Sym->Name' will always evaluate to 'true' [-Wpointer-bool-conversion] sprintf (TypeName, "%s %s", GetBasicTypeName (T), Sym->Name ? Sym->Name : "<unknown>"); ~~~~~^~~~ ~
This commit is contained in:
parent
d8f9201ecd
commit
cdfc1afd89
@ -303,7 +303,8 @@ const char* GetSymTypeName (const Type* T)
|
||||
if (Sym == 0) {
|
||||
return GetBasicTypeName (T);
|
||||
}
|
||||
sprintf (TypeName, "%s %s", GetBasicTypeName (T), Sym->Name ? Sym->Name : "<unknown>");
|
||||
sprintf (TypeName, "%s %s", GetBasicTypeName (T),
|
||||
Sym->Name[0] != '\0' ? Sym->Name : "<unknown>");
|
||||
|
||||
return TypeName;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user