Skip to content

Commit c275290

Browse files
authored
Merge pull request #2211 from martin-frbg/arm64_gcc_trivial
Silence two nuisance warnings from gcc
2 parents bf1430f + b7bbb02 commit c275290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpuid_arm64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int get_feature(char *search)
9494
if( p == NULL ) return 0;
9595

9696
t = strtok(p," ");
97-
while( t = strtok(NULL," "))
97+
while( (t = strtok(NULL," ")))
9898
{
9999
if (!strcmp(t, search)) { return(1); }
100100
}
@@ -344,7 +344,7 @@ void get_features(void)
344344
if( p == NULL ) return;
345345

346346
t = strtok(p," ");
347-
while( t = strtok(NULL," "))
347+
while( (t = strtok(NULL," ")))
348348
{
349349
}
350350

0 commit comments

Comments
 (0)