From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 3783B3851523; Thu, 27 Oct 2022 13:48:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3783B3851523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666878517; bh=zxuX9cPO9f24Me0TlGRMBYSMUpXd6nIV+f6ycf2BdUs=; h=From:To:Subject:Date:From; b=UZqA1kwKXeLlplcF+PuaarSr0rvRU+UlUn5Vgd5x1N1JscT/VDFMBC7EchrkQ53D9 yYaOZAjL8ovKgo8JMOVS/MIAgc2K/JUIw5dOJB7/k/4w6aSHohiFDSwLzzwL6QnsBU PMeVe5AGM1AJjRL5jFPSQ7oO3YzpB/v7ZvqpVI5g= 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: b6c621077438769cadebdfcc5f5298389e29081c X-Git-Newrev: ed4d5c56b87413be83ac085b3eae52b592fca5cb Message-Id: <20221027134837.3783B3851523@sourceware.org> Date: Thu, 27 Oct 2022 13:48:36 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ed4d5c56b87413be83ac085b3eae52b592fca5cb commit ed4d5c56b87413be83ac085b3eae52b592fca5cb 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]); }