summaryrefslogtreecommitdiff
blob: fb5e672cf0e5cbdf851fbba1c69c198a43484afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
the following change removes a bunch of warnings since gcc-11

afuzzy.c: In function ‘int afuzzy_checkSUB(const char*, AFUZZY*)’:
afuzzy.c:197:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]

Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
--- a/afuzzy.c
+++ b/afuzzy.c
@@ -194,8 +194,8 @@
 ******************************************************************************/
 int afuzzy_checkSUB(const char *t, AFUZZY *fuzzy)
 {
-    register char c;
-    register int j, d;
+    char c;
+    int j, d;
 
     /* For eficciency this case should be little bit optimized */
     if (!fuzzy->k) {
@@ -207,7 +207,7 @@
 
             if (R1 & fuzzy->mask_ok)
                 return 1;
-        } /* end for (register int j = 0 ... */
+        } /* end for (int j = 0 ... */
         return 0;
     }
 
@@ -229,16 +229,16 @@
 
         memcpy(fuzzy->R, fuzzy->R1, fuzzy->r_size);
 
-    } /* end for (register int j = 0 ... */
+    } /* end for (int j = 0 ... */
 
     return 0;
 }
 
 static int afuzzy_checkFLT(const char *t, AFUZZY *fuzzy)
 {
-    register Uint FilterR = 0;
-    register Uint FilterR1;
-    register int j;
+    Uint FilterR = 0;
+    Uint FilterR1;
+    int j;
 
     for (j = 0; t[j] != '\0'; j++) {
         FilterR1 = (((FilterR << (fuzzy->k + 1)) | fuzzy->filter_shift) &
@@ -246,7 +246,7 @@
         if (FilterR1 & fuzzy->filter_ok)
             return 1;
         FilterR = FilterR1;
-    } /* end for (register int j = 0 ... */
+    } /* end for (int j = 0 ... */
 
     return 0;
 }