[Lldb-commits] [lldb] 8aeb212 - [debugserver] Fix that is_dot_app is producing unused warnings
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 3 01:24:58 PDT 2020
Author: Raphael Isemann
Date: 2020-08-03T10:24:21+02:00
New Revision: 8aeb212887024a615ca02437cd12fa055bd54b6f
URL: https://github.com/llvm/llvm-project/commit/8aeb212887024a615ca02437cd12fa055bd54b6f
DIFF: https://github.com/llvm/llvm-project/commit/8aeb212887024a615ca02437cd12fa055bd54b6f.diff
LOG: [debugserver] Fix that is_dot_app is producing unused warnings
Some build configurations don't use this static function.
Added:
Modified:
lldb/tools/debugserver/source/debugserver.cpp
Removed:
################################################################################
diff --git a/lldb/tools/debugserver/source/debugserver.cpp b/lldb/tools/debugserver/source/debugserver.cpp
index 4e6aa39e52d3..04cbd2c8b503 100644
--- a/lldb/tools/debugserver/source/debugserver.cpp
+++ b/lldb/tools/debugserver/source/debugserver.cpp
@@ -212,19 +212,21 @@ RNBRunLoopMode RNBRunLoopLaunchInferior(RNBRemote *remote,
// Our default launch method is posix spawn
launch_flavor = eLaunchFlavorPosixSpawn;
+ const bool dot_app = is_dot_app(inferior_argv[0]);
+ (void)dot_app;
#if defined WITH_FBS
// Check if we have an app bundle, if so launch using BackBoard Services.
- if (is_dot_app(inferior_argv[0])) {
+ if (dot_app) {
launch_flavor = eLaunchFlavorFBS;
}
#elif defined WITH_BKS
// Check if we have an app bundle, if so launch using BackBoard Services.
- if (is_dot_app(inferior_argv[0])) {
+ if (dot_app) {
launch_flavor = eLaunchFlavorBKS;
}
#elif defined WITH_SPRINGBOARD
// Check if we have an app bundle, if so launch using SpringBoard.
- if (is_dot_app(inferior_argv[0])) {
+ if (dot_app) {
launch_flavor = eLaunchFlavorSpringBoard;
}
#endif
More information about the lldb-commits
mailing list