diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2024-02-15 10:15:16 +0100 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2024-02-15 10:31:59 +0100 |
commit | 4a32a414ee07bf15c47ba7fb7286d968e73a04fe (patch) | |
tree | ccb2f46f046de8645a2ffe597ecdd6cd4e14596a /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | cd55e230e629f57db742e831c79488d04f68f4e7 (diff) | |
download | llvm-4a32a414ee07bf15c47ba7fb7286d968e73a04fe.zip llvm-4a32a414ee07bf15c47ba7fb7286d968e73a04fe.tar.gz llvm-4a32a414ee07bf15c47ba7fb7286d968e73a04fe.tar.bz2 |
[clang] Fix two gcc warnings about unused variables [NFC]
Without the fix gcc warns like
../../clang/lib/Sema/SemaDecl.cpp:2963:24: warning: unused variable 'SupA' [-Wunused-variable]
2963 | else if (const auto *SupA = dyn_cast<SuppressAttr>(Attr))
| ^~~~
and
../../clang/lib/Driver/Driver.cpp:4192:17: warning: unused variable 'IAA' [-Wunused-variable]
4192 | if (auto *IAA = dyn_cast<InstallAPIJobAction>(Current)) {
| ^~~
Remove the unused variables and change the "dyn_cast"s into "isa"s.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions