aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-exp.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-12-03 19:59:21 +0000
committerJeff Law <law@redhat.com>1995-12-03 19:59:21 +0000
commitf9384420aee40b2a9055be24ca69bd371db86940 (patch)
tree43b019f6dfbeb33a4bedf6c1ca144edcede99b6a /gdb/ch-exp.c
parentdee7a11cd261fbb6108968da2eca7a4971a4b859 (diff)
downloadgdb-f9384420aee40b2a9055be24ca69bd371db86940.zip
gdb-f9384420aee40b2a9055be24ca69bd371db86940.tar.gz
gdb-f9384420aee40b2a9055be24ca69bd371db86940.tar.bz2
* ch-exp.c (parse_named_record_element): Avoid aggregrate
initializations for automatic variables. * hppa-tdep.c (hppa_alignof): Fix typo in last change. Fixes minor build problems.
Diffstat (limited to 'gdb/ch-exp.c')
-rw-r--r--gdb/ch-exp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ch-exp.c b/gdb/ch-exp.c
index 4ce2982..6c2471f 100644
--- a/gdb/ch-exp.c
+++ b/gdb/ch-exp.c
@@ -488,7 +488,9 @@ parse_call ()
static void
parse_named_record_element ()
{
- struct stoken label = PEEK_LVAL ().sval;
+ struct stoken label;
+
+ label = PEEK_LVAL ().sval;
expect (FIELD_NAME, "expected a field name here `%s'", lexptr);
if (check_token (','))
parse_named_record_element ();