[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22260: tinycc complaint about dfa.c
From: |
Aharon Robbins |
Subject: |
bug#22260: tinycc complaint about dfa.c |
Date: |
Mon, 28 Dec 2015 22:53:34 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi.
The current development version of tinycc (mob branch) has this
complaint when I compile gawk:
dfa.c:1734: warning: assignment discards qualifiers from pointer target type
This "fixes" it:
diff --git a/dfa.c b/dfa.c
index 6be2102..d29b72f 100644
--- a/dfa.c
+++ b/dfa.c
@@ -1706,7 +1706,7 @@ addtok_wc (wint_t wc)
static void
add_utf8_anychar (void)
{
- static const charclass utf8_classes[5] = {
+ static charclass const utf8_classes[5] = {
/* 80-bf: non-leading bytes. */
{0, 0, 0, 0, CHARCLASS_WORD_MASK, CHARCLASS_WORD_MASK, 0, 0},
This is the only compiler that complains, and even this one only
just started.
Should I commit this fix?
Thanks,
Arnold
- bug#22260: tinycc complaint about dfa.c,
Aharon Robbins <=