[all-commits] [llvm/llvm-project] 06be14: [flang][nfc] Fix GCC 11 build

Andrzej Warzyński via All-commits all-commits at lists.llvm.org
Thu Mar 3 09:07:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06be148843618980588a4d63bf37bbd2103d5b77
      https://github.com/llvm/llvm-project/commit/06be148843618980588a4d63bf37bbd2103d5b77
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M flang/lib/Semantics/runtime-type-info.cpp

  Log Message:
  -----------
  [flang][nfc] Fix GCC 11 build

After merging https://reviews.llvm.org/D120801, Flang no longer builds
with GCC 11:
```
../llvm-project/flang/lib/Semantics/runtime-type-info.cpp:385:22: error: variable ‘lenParam’ set but not used [-Werror=unused-but-set-variable]
  385 |       for (SymbolRef lenParam : *lenParameters) {
      |                      ^~~~~~~~
```

I'm sending this without a review as a quick fix.




More information about the All-commits mailing list