Skip to content

Commit 4754aec

Browse files
committed
Bug#33520758 unused type alias
Issue ===== clang on windows reports: router/src/router/src/windows/service_operations.cc(30,9): warning: unused type alias 'OptionNames' [-Wunused-local-typedef] using OptionNames = CmdOption::OptionNames; Change ====== - use the type alias RB: 27203
1 parent 8d28075 commit 4754aec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

router/src/router/src/windows/service_operations.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void add_service_options(CmdArgHandler &arg_handler,
3030
using OptionNames = CmdOption::OptionNames;
3131

3232
arg_handler.add_option(
33-
CmdOption::OptionNames({"--install-service"}),
33+
OptionNames({"--install-service"}),
3434
"Install " + std::string(kServiceProductName) +
3535
" as a Windows service which starts "
3636
"automatically at system boot (<SERVICE_NAME>='" +
@@ -44,7 +44,7 @@ void add_service_options(CmdArgHandler &arg_handler,
4444
});
4545

4646
arg_handler.add_option(
47-
CmdOption::OptionNames({"--install-service-manual"}),
47+
OptionNames({"--install-service-manual"}),
4848
"Install " + std::string(kServiceProductName) +
4949
" as a Windows service which needs to be started manually "
5050
"(<SERVICE_NAME>='" +
@@ -58,7 +58,7 @@ void add_service_options(CmdArgHandler &arg_handler,
5858
});
5959

6060
arg_handler.add_option(
61-
CmdOption::OptionNames({"--remove-service"}),
61+
OptionNames({"--remove-service"}),
6262
"Remove " + std::string(kServiceProductName) +
6363
" from a Windows services (<SERVICE_NAME>='" +
6464
std::string(kDefaultServiceName) + "' if not provided)",
@@ -71,7 +71,7 @@ void add_service_options(CmdArgHandler &arg_handler,
7171
});
7272

7373
arg_handler.add_option(
74-
CmdOption::OptionNames({"--service"}),
74+
OptionNames({"--service"}),
7575
"Used internally by the service manager when " +
7676
std::string(kServiceProductName) +
7777
" is started as a Windows service. Fails when called from the "

0 commit comments

Comments
 (0)