diff options
author | Martin Storsjö <martin@martin.st> | 2022-04-06 14:10:40 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-04-29 21:33:37 +0300 |
commit | 2a84a86184392a7e18a958f36db0b2b3da6ae2bd (patch) | |
tree | c9d2a35a08d3624527cda324131fbc3f957d278a /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 268089b6ac4bca2c87b272a61d7dcc6ad3e752e4 (diff) | |
download | llvm-2a84a86184392a7e18a958f36db0b2b3da6ae2bd.zip llvm-2a84a86184392a7e18a958f36db0b2b3da6ae2bd.tar.gz llvm-2a84a86184392a7e18a958f36db0b2b3da6ae2bd.tar.bz2 |
[lldb] Fix initialization of LazyBool/bool variables m_overwrite/m_overwrite_lazy. NFCI.
This silences a GCC warning after
1f7b58f2a50461493f083b2ed807b25e036286f6 / D122680:
lldb/source/Commands/CommandObjectCommands.cpp:1650:22: warning: enum constant in boolean context [-Wint-in-bool-context]
1650 | bool m_overwrite = eLazyBoolCalculate;
| ^~~~~~~~~~~~~~~~~~
Differential Revision: https://reviews.llvm.org/D123204
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index 1d4687b..4ea8108 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -1480,7 +1480,7 @@ protected: std::string m_class_name; std::string m_funct_name; std::string m_short_help; - LazyBool m_overwrite_lazy; + LazyBool m_overwrite_lazy = eLazyBoolCalculate; ScriptedCommandSynchronicity m_synchronicity = eScriptedCommandSynchronicitySynchronous; }; @@ -1647,7 +1647,7 @@ protected: std::string m_cmd_name; CommandObjectMultiword *m_container = nullptr; std::string m_short_help; - bool m_overwrite = eLazyBoolCalculate; + bool m_overwrite = false; ScriptedCommandSynchronicity m_synchronicity = eScriptedCommandSynchronicitySynchronous; }; |