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

Michael Benfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 30 19:06:57 PDT 2021


mbenfield added a comment.

FWIW `gcc` does not warn in this case regardless of any cast:

  void f() {
    int x;
    x = 0;
    sizeof(x);
  }


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