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



Reply via email to