summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2002-08-12 14:53:26 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2002-08-12 14:53:26 +0000
commitd7163c0a58fad051d90a6f83107c646c4408971c (patch)
tree30d50ccb5c79559d3ec88eb59705c19c4ead233c /src
parentdb2cc12fd07acb54b19cf6475f6d330a8b904e0a (diff)
downloadbison-d7163c0a58fad051d90a6f83107c646c4408971c.tar.gz
(symbol_get): Don't cast LHS of an assignment;
this is a GCC extension and is not portable to other compilers.
Diffstat (limited to 'src')
-rw-r--r--src/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symtab.c b/src/symtab.c
index 9280915e..7b313120 100644
--- a/src/symtab.c
+++ b/src/symtab.c
@@ -421,7 +421,7 @@ symbol_get (const char *key, location_t location)
/* Keep the symbol in a printable form. */
key = quotearg_style (escape_quoting_style, key);
- (const char *) probe.tag = key;
+ *(char const **) &probe.tag = key;
entry = hash_lookup (symbol_table, &probe);
if (!entry)