diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-05-01 09:21:46 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2006-05-01 09:21:46 +0000 |
commit | 89cdfe5739c7646eaba0f004158522d39c0808aa (patch) | |
tree | bfc15e9af77db4b990d69efbcc464bfad21aabe7 /gas/macro.c | |
parent | c35da14031bf1f026af52fcce346803f47b5ae94 (diff) | |
download | gdb-89cdfe5739c7646eaba0f004158522d39c0808aa.zip gdb-89cdfe5739c7646eaba0f004158522d39c0808aa.tar.gz gdb-89cdfe5739c7646eaba0f004158522d39c0808aa.tar.bz2 |
* listing.c (listing_listing): Remove useless loop.
* macro.c (macro_expand): Remove is_positional local variable.
* read.c (s_comm_internal): Simplify `if' condition 1 || x -> 1
and simplify surrounding expressions, where possible.
(assign_symbol): Likewise.
(s_weakref): Likewise.
* symbols.c (colon): Likewise.
Diffstat (limited to 'gas/macro.c')
-rw-r--r-- | gas/macro.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gas/macro.c b/gas/macro.c index af98bad..e6e9d05 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -1025,7 +1025,6 @@ macro_expand (int idx, sb *in, macro_entry *m, sb *out) sb t; formal_entry *ptr; formal_entry *f; - int is_positional = 0; int is_keyword = 0; int narg = 0; const char *err = NULL; @@ -1116,8 +1115,6 @@ macro_expand (int idx, sb *in, macro_entry *m, sb *out) } else { - /* This is a positional arg. */ - is_positional = 1; if (is_keyword) { err = _("can't mix positional and keyword arguments"); |