/in/foo.c: In function 'min_index':
/in/foo.c:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=1;i<size;i++)
^~~
/in/foo.c:15:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return min;
^~~~~~
/in/foo.c: In function 'main':
/in/foo.c:19:18: warning: unused variable 'i' [-Wunused-variable]
int array[1000],i,size,index;
^
/in/foo.c: In function 'get_array':
/in/foo.c:8:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.c: In function 'min_index':
/in/foo.c:15:10: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
return min;
^~~
/in/foo.c: In function 'main':
/in/foo.c:23:2: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d,%d",array[index],index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~