From 32f40d82a7ec52f871f3ac1075a4d067331ae928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 11 Nov 2021 15:19:28 +0100 Subject: [PATCH] workaround -Wmaybe-uninitialized The init is legit as it prevents the reader to do a useless loop and the writer to write random number In case of failing to read a face index or the number of faces, the error bit in the stream is set anyway and the user has to check it --- Stream_support/include/CGAL/IO/OFF/generic_copy_OFF.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Stream_support/include/CGAL/IO/OFF/generic_copy_OFF.h b/Stream_support/include/CGAL/IO/OFF/generic_copy_OFF.h index 799691de51a..165859b3c80 100644 --- a/Stream_support/include/CGAL/IO/OFF/generic_copy_OFF.h +++ b/Stream_support/include/CGAL/IO/OFF/generic_copy_OFF.h @@ -71,12 +71,12 @@ generic_copy_OFF(File_scanner_OFF& scanner, if(! in) return; - std::size_t no; + std::size_t no = 0; scanner.scan_facet(no, i); writer.write_facet_begin(no); for(std::size_t j=0; j