From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id D64063858C2B; Fri, 28 Oct 2022 10:18:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D64063858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666952293; bh=U1iEpIUoKTgQQab/mEXp/dayP3gqy5gR/y4d+tSPhxE=; h=From:To:Subject:Date:From; b=sdLb3KyZj3uy6g7Jt4QJkDlXUB3CaKyZwUdSEIJ4PPRGSQ6teX3f2cOhlq62iDPHX VSpAdJr/XczZSW8zlQ0iPJ89fFLVh7cBopvWIyK48hcUGInfQrXoWn6W8q6N9INXCe 1BdunJZQ9fRQUfFHwptUJaLb/YmQtkr86c6BF7tw= 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] scripts: Use bool in tunables initializer X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/master X-Git-Oldrev: 37db2657c92da3bc50128feed53b3f58739a9b19 X-Git-Newrev: 0b845d3b3fde40e72c5372d6fa0f129b5e45c363 Message-Id: <20221028101813.D64063858C2B@sourceware.org> Date: Fri, 28 Oct 2022 10:18:12 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0b845d3b3fde40e72c5372d6fa0f129b5e45c363 commit 0b845d3b3fde40e72c5372d6fa0f129b5e45c363 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. Reviewed-by: Florian Weimer 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]); }