GCC queue_gettask out-of-bounds warning
libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -DTIMER -DCOUNTER -DCPU_TPS=2.30e9 -I/usr/include/hdf5/serial -I/usr/include -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math -march=haswell -mavx2 -pthread -Wall -Werror -MT queue.lo -MD -MP -MF .deps/queue.Tpo -c queue.c -fPIC -DPIC -o .libs/queue.o
queue.c: In function 'queue_gettask':
queue.c:175:19: error: array subscript is above array bounds [-Werror=array-bounds]
if (window[i].score > window[ind_max].score) ind_max = i;
^
queue.c:198:19: error: array subscript is above array bounds [-Werror=array-bounds]
if (window[i].score > window[ind_max].score) ind_max = i;
^
I haven't looked at this yet.