Skip to content

Commit 2e150f8

Browse files
committed
Conditionally compile kRetryIntervalS to avoid unused var warning
1 parent 1672d94 commit 2e150f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/fabric-admin/commands/interactive/InteractiveCommands.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ namespace {
4040
constexpr char kInteractiveModePrompt[] = ">>> ";
4141
constexpr char kInteractiveModeHistoryFileName[] = "chip_tool_history";
4242
constexpr char kInteractiveModeStopCommand[] = "quit()";
43-
constexpr uint16_t kRetryIntervalS = 5;
43+
#if defined(PW_RPC_ENABLED)
44+
constexpr uint16_t kRetryIntervalS = 5;
45+
#endif
4446

4547
// File pointer for the log file
4648
FILE * sLogFile = nullptr;

0 commit comments

Comments
 (0)