mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-11 06:04:12 +00:00
[Ada] Fix ARI warnings in advance_wild_match
gdb/ChangeLog: * ada-lang.c (advance_wild_match): Delete local variable t2. Adjust code accordingly. Minor reformatting.
This commit is contained in:
parent
ea5cae92bd
commit
aa27d0b360
@ -1,3 +1,9 @@
|
||||
2010-10-06 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
Fix ARI warnings in advance_wild_match.
|
||||
* ada-lang.c (advance_wild_match): Delete local variable t2.
|
||||
Adjust code accordingly. Minor reformatting.
|
||||
|
||||
2010-10-06 Ken Werner <ken.werner@de.ibm.com>
|
||||
|
||||
* gdbtypes.h (struct main_type): Remove flag_nottext.
|
||||
|
@ -4999,7 +4999,7 @@ advance_wild_match (const char **namep, const char *name0, int target0)
|
||||
|
||||
while (1)
|
||||
{
|
||||
int t0, t1, t2;
|
||||
int t0, t1;
|
||||
|
||||
t0 = *name;
|
||||
if (t0 == '_')
|
||||
@ -5013,8 +5013,8 @@ advance_wild_match (const char **namep, const char *name0, int target0)
|
||||
else
|
||||
name += 1;
|
||||
}
|
||||
else if (t1 == '_' &&
|
||||
(((t2 = name[2]) >= 'a' && t2 <= 'z') || t2 == target0))
|
||||
else if (t1 == '_' && ((name[2] >= 'a' && name[2] <= 'z')
|
||||
|| name[2] == target0))
|
||||
{
|
||||
name += 2;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user