[clang] [NFC] void cast an unused return (PR #172179)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 13 13:54:42 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: None (schittir)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/172179.diff


1 Files Affected:

- (modified) clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp (+1-1) 


``````````diff
diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp
index bdb457401bc73..6075546ee1263 100644
--- a/clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp
+++ b/clang/lib/Tooling/DependencyScanning/DependencyScannerImpl.cpp
@@ -775,7 +775,7 @@ bool CompilerInstanceWithContext::initialize(DiagnosticConsumer *DC) {
   // once here, and the information is reused for all computeDependencies calls.
   // We do not need to call createTarget explicitly if we go through
   // CompilerInstance::ExecuteAction to perform scanning.
-  CI.createTarget();
+  (void)CI.createTarget();
 
   return true;
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/172179


More information about the cfe-commits mailing list