mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
(symbol_get): Don't cast LHS of an assignment;
this is a GCC extension and is not portable to other compilers.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user