Silence two nuisance warnings from gcc
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sun, 11 Aug 2019 10:46:05 +0000 (12:46 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Aug 2019 10:46:05 +0000 (12:46 +0200)
cpuid_arm64.c

index a5e731d..e8aa298 100644 (file)
@@ -94,7 +94,7 @@ int get_feature(char *search)
        if( p == NULL ) return 0;
 
        t = strtok(p," ");
-       while( t = strtok(NULL," "))
+       while( (t = strtok(NULL," ")))
        {
                if (!strcmp(t, search))   { return(1); }
        }
@@ -344,7 +344,7 @@ void get_features(void)
        if( p == NULL ) return;
 
        t = strtok(p," ");
-       while( t = strtok(NULL," "))
+       while( (t = strtok(NULL," ")))
        {
        }