summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-12-15 14:42:41 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-12-15 14:42:41 +0100
commit2d46769a3ec3af1d4ac9b604c91337c004af5ec1 (patch)
treef0c5a388b858b93d84c7cf00510a3fb7c3802a78
parent666391005879113c4f8241f9d40b0939c39b824b (diff)
downloadvdr-plugin-tvguide-2d46769a3ec3af1d4ac9b604c91337c004af5ec1.tar.gz
vdr-plugin-tvguide-2d46769a3ec3af1d4ac9b604c91337c004af5ec1.tar.bz2
Eliminate "Warnung: ISO-C++17 erlaubt Speicherklassenangabe »register« nicht [-Wregister]"
-rw-r--r--tools.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools.c b/tools.c
index 63b4d01..452ba54 100644
--- a/tools.c
+++ b/tools.c
@@ -434,8 +434,8 @@ ALGORITHM
******************************************************************************/
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)
@@ -449,7 +449,7 @@ int afuzzy_checkSUB(const char *t, AFUZZY *fuzzy)
if (R1 & fuzzy->mask_ok)
return 1;
- } /* end for (register int j = 0 ... */
+ } /* end for (int j = 0 ... */
return 0;
}
@@ -473,16 +473,16 @@ int afuzzy_checkSUB(const char *t, AFUZZY *fuzzy)
memcpy(fuzzy->R, fuzzy->R1, fuzzy->r_size);
- } /* end for (register int j = 0 ... */
+ } /* end for (int j = 0 ... */
return 0;
}
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++)
{
@@ -491,7 +491,7 @@ int afuzzy_checkFLT(const char *t, AFUZZY *fuzzy)
if (FilterR1 & fuzzy->filter_ok)
return 1;
FilterR = FilterR1;
- } /* end for (register int j = 0 ... */
+ } /* end for (int j = 0 ... */
return 0;
}