Skip to content

Commit 5219678

Browse files
kiel-applepull[bot]
authored andcommitted
fix unused variable issue on non-macOS testing (#34970)
1 parent feda4cb commit 5219678

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/darwin/Framework/CHIPTests/TestHelpers/MTRTestServerAppRunner.m

+2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@
2121

2222
static unsigned sAppRunnerIndex = 1;
2323

24+
#if HAVE_NSTASK
2425
// kBasePort gets the discriminator added to it to figure out the port the app
2526
// should be using. This ensures that apps with distinct discriminators use
2627
// distinct ports.
2728
static const uint16_t kMinDiscriminator = 1111;
2829
static const uint16_t kBasePort = 5542 - kMinDiscriminator;
30+
#endif // HAVE_NSTASK
2931

3032
@implementation MTRTestServerAppRunner {
3133
unsigned _uniqueIndex;

0 commit comments

Comments
 (0)