From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 04F24385702D; Thu, 21 Jul 2022 11:34:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04F24385702D Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdbsupport] Fix type of parallel_for_each_debug X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 2fe9a3c41faa71b1f2bde40e818187491a5a9925 X-Git-Newrev: 9b89bf16c39365ac68929ca5d8484ef732e0ac4f Message-Id: <20220721113418.04F24385702D@sourceware.org> Date: Thu, 21 Jul 2022 11:34:18 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2022 11:34:18 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9b89bf16c393= 65ac68929ca5d8484ef732e0ac4f commit 9b89bf16c39365ac68929ca5d8484ef732e0ac4f Author: Tom de Vries Date: Thu Jul 21 13:34:14 2022 +0200 [gdbsupport] Fix type of parallel_for_each_debug =20 When I changed the initialization of parallel_for_each_debug from 0 to = false, I forgot to change the type from int to bool. Fix this. =20 Tested by rebuilding on x86_64-linux. Diff: --- gdbsupport/parallel-for.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbsupport/parallel-for.h b/gdbsupport/parallel-for.h index bf40f125f0f..0037ee23ff3 100644 --- a/gdbsupport/parallel-for.h +++ b/gdbsupport/parallel-for.h @@ -141,7 +141,7 @@ parallel_for_each (unsigned n, RandomIt first, RandomIt= last, =20 /* If enabled, print debug info about how the work is distributed across the threads. */ - const int parallel_for_each_debug =3D false; + const bool parallel_for_each_debug =3D false; =20 size_t n_worker_threads =3D thread_pool::g_thread_pool->thread_count (); size_t n_threads =3D n_worker_threads;