Fix for issue #1024: arm-linux-androideabi-g++ Compiler Error in /cpuid_arm.c
authorMichael Foster <mfoster@Michaels-LeEco-MacBook-Pro.local>
Fri, 2 Dec 2016 17:28:31 +0000 (09:28 -0800)
committerMichael Foster <mfoster@Michaels-LeEco-MacBook-Pro.local>
Fri, 2 Dec 2016 17:28:31 +0000 (09:28 -0800)
Line 77: Compiler requires non-void function to return a value

cpuid_arm.c

index fe462c0..2f89592 100644 (file)
@@ -74,7 +74,7 @@ int get_feature(char *search)
        fclose(infile);
 
 
-       if( p == NULL ) return;
+       if( p == NULL ) return 0;
 
        t = strtok(p," ");
        while( t = strtok(NULL," "))