From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 6CBFB3852C53; Wed, 23 Nov 2022 14:38:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CBFB3852C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214320; bh=iKYfPhpONffcheCJ4aI9TsBDtjbYkew0Hlcd4twDu+8=; h=From:To:Subject:Date:From; b=IxGnbxnvuX5gaEkgWxTtTWScRaYwLQMzH3nSf9V+Gs5laHjU8f8Hqwssv/MpMaycq RQt2EbPLFgW49l3J6S6SLgNyKhUjbEugtoDxynauzRcBqaarCqo8Pwc+IDDeJFa3ZK OydMt46t6JPQmhSnGiDHgWk9K9wUEv/wdgokQ0Wk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] scripts: Use bool in tunables initializer X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 1fb0a3690270bcf3e5eb9d978bf050bfe1261c93 X-Git-Newrev: 26be8f8a565aac4f0c90a7b05c4fce7519ea66a8 Message-Id: <20221123143840.6CBFB3852C53@sourceware.org> Date: Wed, 23 Nov 2022 14:38:40 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=26be8f8a565aac4f0c90a7b05c4fce7519ea66a8 commit 26be8f8a565aac4f0c90a7b05c4fce7519ea66a8 Author: Szabolcs Nagy Date: Tue Jun 8 14:03:38 2021 +0100 scripts: Use bool in tunables initializer The initializer for a tunable_t set the bool initialized flag to NULL. This causes a build failure when pointer to bool conversion warns. Diff: --- scripts/gen-tunables.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen-tunables.awk b/scripts/gen-tunables.awk index fa63e86d1a..d6de100df0 100644 --- a/scripts/gen-tunables.awk +++ b/scripts/gen-tunables.awk @@ -177,7 +177,7 @@ END { n = indices[2]; m = indices[3]; printf (" {TUNABLE_NAME_S(%s, %s, %s)", t, n, m) - printf (", {TUNABLE_TYPE_%s, %s, %s}, {%s}, NULL, TUNABLE_SECLEVEL_%s, %s},\n", + printf (", {TUNABLE_TYPE_%s, %s, %s}, {%s}, false, TUNABLE_SECLEVEL_%s, %s},\n", types[t,n,m], minvals[t,n,m], maxvals[t,n,m], default_val[t,n,m], security_level[t,n,m], env_alias[t,n,m]); }