From: Paul Eggert Date: Mon, 12 Aug 2002 14:53:26 +0000 (+0000) Subject: (symbol_get): Don't cast LHS of an assignment; X-Git-Tag: BISON-1_49b~13 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/d7163c0a58fad051d90a6f83107c646c4408971c?ds=sidebyside (symbol_get): Don't cast LHS of an assignment; this is a GCC extension and is not portable to other compilers. --- 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)