[PATCH] D100581: [Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable
Andi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 3 22:05:58 PDT 2021
Abpostelnicu added a comment.
In D100581#2798079 <https://reviews.llvm.org/D100581#2798079>, @raj.khem wrote:
> http://sprunge.us/FJzZXL is a file from harfbuzz and it warns
>
> a.cc:28670:32: error: variable 'supp_size' set but not used [-Werror,-Wunused-but-set-variable]
> unsigned int size0, size1, supp_size = 0;
You have, with pragma gcc error, look at hb.hh. The problem is that clang has an error dealing with cascading pragma when setting different levels.
> I do not have -Werror enabled but it still is reported as error. There is no way to disable this warning ?
Go to the hb GitHub repo, I’ve fixed this in master branch, it will propagate soon to a new release.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100581/new/
https://reviews.llvm.org/D100581
More information about the cfe-commits
mailing list