summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simpleperf/cmd_help.cpp')
-rw-r--r--simpleperf/cmd_help.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_help.cpp b/simpleperf/cmd_help.cpp
index 93a90ee1..0bb62311 100644
--- a/simpleperf/cmd_help.cpp
+++ b/simpleperf/cmd_help.cpp
@@ -73,6 +73,6 @@ void HelpCommand::PrintLongHelpForOneCommand(const Command& command) {
printf("%s\n", command.LongHelpString().c_str());
}
-__attribute__((constructor)) static void RegisterHelpCommand() {
+void RegisterHelpCommand() {
RegisterCommand("help", [] { return std::unique_ptr<Command>(new HelpCommand); });
}