diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-06-08 14:03:38 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-27 14:46:46 +0100 |
commit | ed4d5c56b87413be83ac085b3eae52b592fca5cb (patch) | |
tree | 1b2f7e8daf230d9992a24763ae6794f1effcbb20 | |
parent | b6c621077438769cadebdfcc5f5298389e29081c (diff) | |
download | glibc-ed4d5c56b87413be83ac085b3eae52b592fca5cb.tar.gz glibc-ed4d5c56b87413be83ac085b3eae52b592fca5cb.tar.xz glibc-ed4d5c56b87413be83ac085b3eae52b592fca5cb.zip |
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.
-rw-r--r-- | scripts/gen-tunables.awk | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } |