[PATCH] D100581: [Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable

Khem Raj via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 3 21:04:57 PDT 2021


raj.khem added a comment.

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;

I do not have -Werror enabled but it still is reported as error. There is no way to disable this warning ?


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