From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id EF14A385AE49 for ; Thu, 21 Jul 2022 11:34:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EF14A385AE49 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3D8543477E for ; Thu, 21 Jul 2022 11:34:48 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2B9DA13A1B for ; Thu, 21 Jul 2022 11:34:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id O5l6Cdg52WIecQAAMHmgww (envelope-from ) for ; Thu, 21 Jul 2022 11:34:48 +0000 Date: Thu, 21 Jul 2022 13:34:46 +0200 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [committed][gdbsupport] Fix type of parallel_for_each_debug Message-ID: <20220721113445.GA28355@delia.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2022 11:34:50 -0000 Hi, 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. Tested by rebuilding on x86_64-linux. Committed to trunk. Thanks, - Tom [gdbsupport] Fix type of parallel_for_each_debug --- 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, /* If enabled, print debug info about how the work is distributed across the threads. */ - const int parallel_for_each_debug = false; + const bool parallel_for_each_debug = false; size_t n_worker_threads = thread_pool::g_thread_pool->thread_count (); size_t n_threads = n_worker_threads;