/in/foo.c: In function 'minindex':
/in/foo.c:23:9: warning: 'index' may be used uninitialized in this function [-Wmaybe-uninitialized]
return index;
^~~~~
/in/foo.c:17:7: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i] < min)
^
/in/foo.c: In function 'main':
/in/foo.c:37:2: warning: 'index' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d", minindex(a, n1), minindex(b, n2));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:17:7: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i] < min)
^
/in/foo.c:5:6: note: 'min' was declared here
int min, index;
^~~
/in/foo.c:37:2: warning: 'index' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d", minindex(a, n1), minindex(b, n2));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:17:7: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (a[i] < min)
^
/in/foo.c:5:6: note: 'min' was declared here
int min, index;
^~~