From 10835577794bcfe1595eb95b480b8a8fa561fb01 Mon Sep 17 00:00:00 2001 From: Allan Shortlidge Date: Thu, 8 Aug 2024 08:30:21 -0700 Subject: [PATCH] Dependency Scanning: Address -Wmissing-field-initializers warnings. Fix warnings introduced by https://github.com/swiftlang/swift/pull/75734. --- lib/DependencyScan/DependencyScanningTool.cpp | 3 ++- lib/DependencyScan/ScanDependencies.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/DependencyScan/DependencyScanningTool.cpp b/lib/DependencyScan/DependencyScanningTool.cpp index 195b6260b264e..358c78dbc63ef 100644 --- a/lib/DependencyScan/DependencyScanningTool.cpp +++ b/lib/DependencyScan/DependencyScanningTool.cpp @@ -229,7 +229,8 @@ static swiftscan_dependency_graph_t generateHollowDiagnosticOutput( c_string_utils::create_null(), c_string_utils::create_null(), c_string_utils::create_null(), - nullptr}; + nullptr, + c_string_utils::create_null()}; hollowMainModuleInfo->details = hollowDetails; // Empty Link Library set diff --git a/lib/DependencyScan/ScanDependencies.cpp b/lib/DependencyScan/ScanDependencies.cpp index 4f96100195b57..a36a866d0ef0b 100644 --- a/lib/DependencyScan/ScanDependencies.cpp +++ b/lib/DependencyScan/ScanDependencies.cpp @@ -739,7 +739,8 @@ generateFullDependencyGraph(const CompilerInstance &instance, .CASBridgingHeaderIncludeTreeRootID.c_str()), /*CacheKey*/ create_clone(""), createMacroDependencySet( - swiftSourceDeps->textualModuleDetails.macroDependencies)}; + swiftSourceDeps->textualModuleDetails.macroDependencies), + /*userModuleVersion*/ create_clone("")}; } else if (swiftPlaceholderDeps) { details->kind = SWIFTSCAN_DEPENDENCY_INFO_SWIFT_PLACEHOLDER; details->swift_placeholder_details = {