Suppress warning when RPC is disabled (#34199)
diff --git a/examples/fabric-admin/commands/interactive/InteractiveCommands.cpp b/examples/fabric-admin/commands/interactive/InteractiveCommands.cpp
index cd63510..22b6341 100644
--- a/examples/fabric-admin/commands/interactive/InteractiveCommands.cpp
+++ b/examples/fabric-admin/commands/interactive/InteractiveCommands.cpp
@@ -40,7 +40,10 @@
constexpr char kInteractiveModePrompt[] = ">>> ";
constexpr char kInteractiveModeHistoryFileName[] = "chip_tool_history";
constexpr char kInteractiveModeStopCommand[] = "quit()";
-constexpr uint16_t kRetryIntervalS = 5;
+
+#if defined(PW_RPC_ENABLED)
+constexpr uint16_t kRetryIntervalS = 5;
+#endif
// File pointer for the log file
FILE * sLogFile = nullptr;
diff --git a/examples/fabric-admin/commands/pairing/PairingCommand.cpp b/examples/fabric-admin/commands/pairing/PairingCommand.cpp
index 5a02739..521325a 100644
--- a/examples/fabric-admin/commands/pairing/PairingCommand.cpp
+++ b/examples/fabric-admin/commands/pairing/PairingCommand.cpp
@@ -543,7 +543,9 @@
// print to console
fprintf(stderr, "Device with Node ID: 0x%lx has been successfully removed.\n", nodeId);
- // TODO: (#33973) Add RPC method RemoveSynchronizedDevice
+#if defined(PW_RPC_ENABLED)
+ RemoveSynchronizedDevice(nodeId);
+#endif
}
else
{