foreach.h: remove compiler warnings