Fix broken msys2 build with gcc 11
Fix broken msys2 build with gcc 11

Fix #3672.
stweil/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,amitdo/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,stweil/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,stweil/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,stweil/tesseract,tesseract-ocr/tesseract,stweil/tesseract