From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 241EF3858024; Sun, 18 Oct 2020 13:15:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 241EF3858024 To: cygwin-apps-cvs@sourceware.org Subject: [setup - the official Cygwin setup program] branch master, updated. release_2.905-5-gda31ad35 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 1473bfd37d3f38c4f75adad3eab7e1bf83526339 X-Git-Newrev: da31ad359bcb61a6d824732c0093a1138e613db6 Message-Id: <20201018131505.241EF3858024@sourceware.org> Date: Sun, 18 Oct 2020 13:15:05 +0000 (GMT) From: Jon TURNEY X-BeenThere: cygwin-apps-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin-apps git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2020 13:15:05 -0000 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=da31ad359bcb61a6d824732c0093a1138e613db6 commit da31ad359bcb61a6d824732c0093a1138e613db6 Author: Jon Turney Date: Wed Sep 23 22:43:30 2020 +0100 Fix error with gcc 10.2 and -Werror=format archive_tar.cc: In member function ‘virtual const string archive_tar::next_file_name()’: archive_tar.cc:161:37: error: 'I' flag used with ‘%o’ gnu_scanf format [-Werror=format=] archive_tar.cc:161:37: error: format ‘%o’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘size_t*’ {aka ‘long long unsigned int*’} [-Werror=format=] archive_tar.cc:181:38: error: 'I' flag used with ‘%o’ gnu_scanf format [-Werror=format=] archive_tar.cc:181:38: error: format ‘%o’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘size_t*’ {aka ‘long long unsigned int*’} [-Werror=format=] Diff: --- archive_tar.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archive_tar.cc b/archive_tar.cc index 05c3f6e8..c3592386 100644 --- a/archive_tar.cc +++ b/archive_tar.cc @@ -158,7 +158,7 @@ archive_tar::next_file_name () else if (state.have_longname) state.have_longname = 0; - sscanf (state.tar_header.size, "%Io", &state.file_length); + sscanf (state.tar_header.size, "%zo", &state.file_length); state.file_offset = 0; if (_tar_verbose) @@ -178,7 +178,7 @@ archive_tar::next_file_name () CYG_PATH_MAX); err++; state.parent->read (&state.tar_header, 512); - sscanf (state.tar_header.size, "%Io", &state.file_length); + sscanf (state.tar_header.size, "%zo", &state.file_length); state.file_offset = 0; skip_file (); return next_file_name ();