From 29625bbf68014b8ecb80ff0fbf00c15e5c4054fb Mon Sep 17 00:00:00 2001 From: Daniel Bahrdt Date: Fri, 12 May 2023 13:57:22 +0200 Subject: [PATCH] Fix build errors due to new compiler on Arch Linux --- src/app/tests/suites/pics/PICSBooleanExpressionParser.h | 1 + src/controller/SetUpCodePairer.cpp | 2 +- src/setup_payload/AdditionalDataPayload.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/tests/suites/pics/PICSBooleanExpressionParser.h b/src/app/tests/suites/pics/PICSBooleanExpressionParser.h index a9ecd8b36713b5..b9c4a700272d79 100644 --- a/src/app/tests/suites/pics/PICSBooleanExpressionParser.h +++ b/src/app/tests/suites/pics/PICSBooleanExpressionParser.h @@ -24,6 +24,7 @@ #include #include #include +#include class PICSBooleanExpressionParser { diff --git a/src/controller/SetUpCodePairer.cpp b/src/controller/SetUpCodePairer.cpp index 57ea06ed403e31..628e6ec3646ef2 100644 --- a/src/controller/SetUpCodePairer.cpp +++ b/src/controller/SetUpCodePairer.cpp @@ -491,7 +491,7 @@ void SetUpCodePairer::OnPairingComplete(CHIP_ERROR error) if (CHIP_ERROR_TIMEOUT == error && mCurrentPASEParameters.HasValue()) { const auto & params = mCurrentPASEParameters.Value(); - auto & ip = params.GetPeerAddress().GetIPAddress(); + auto ip = params.GetPeerAddress().GetIPAddress(); auto err = Dnssd::Resolver::Instance().ReconfirmRecord(params.mHostName, ip, params.mInterfaceId); if (CHIP_NO_ERROR != err && CHIP_ERROR_NOT_IMPLEMENTED != err) { diff --git a/src/setup_payload/AdditionalDataPayload.h b/src/setup_payload/AdditionalDataPayload.h index 9614d08579016a..d60f148cf560a9 100644 --- a/src/setup_payload/AdditionalDataPayload.h +++ b/src/setup_payload/AdditionalDataPayload.h @@ -35,6 +35,7 @@ #pragma once #include +#include namespace chip { namespace SetupPayloadData {