Skip to content

Commit bef4edd

Browse files
committed
Fixed the error "use of designated initializers requires"
1 parent 7d25ca7 commit bef4edd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/init.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ void ParseCommandLineFlags(const char *usage, int *argc, char ***argv,
3737
absl::SetProgramUsageMessage(absl::StrCat(PACKAGE_STRING, " ", VERSION,
3838
"\n\n", "Usage: ", *argv[0],
3939
" [options] files"));
40-
absl::SetFlagsUsageConfig({.version_string = [&]() {
40+
41+
absl::FlagsUsageConfig usage_config;
42+
usage_config.version_string = [&]() {
4143
return absl::StrCat(PACKAGE_STRING, " ", VERSION, "\n");
42-
}});
44+
};
45+
absl::SetFlagsUsageConfig(usage_config);
4346

4447
const auto unused_args = absl::ParseCommandLine(*argc, *argv);
4548

0 commit comments

Comments
 (0)