Skip to content

Commit 26e72ab

Browse files
authored
Fix dynamic bridge compile warnings from gcc (project-chip#23014)
* Fix invalid compare in bridge example * Fix dynamic bridge compiler warnings * Undo submodule update
1 parent d38820d commit 26e72ab

File tree

1 file changed

+2
-2
lines changed
  • examples/dynamic-bridge-app/linux/include/data-model

1 file changed

+2
-2
lines changed

examples/dynamic-bridge-app/linux/include/data-model/DataModel.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct IsOptionalOrNullable<Nullable<X>>
5353
static constexpr bool value = true;
5454
};
5555

56-
static_assert(IsList<std::vector<unsigned char>>::value);
56+
static_assert(IsList<std::vector<unsigned char>>::value, "Vector of chars must be a list");
5757

5858
template <typename X,
5959
std::enable_if_t<!IsOptionalOrNullable<std::decay_t<X>>::value && !IsList<std::decay_t<X>>::value, bool> = true>
@@ -180,7 +180,7 @@ CHIP_ERROR Decode(const ConcreteDataAttributePath & aPath, AttributeValueDecoder
180180
{
181181
Span<std::decay_t<typename X::pointer>> span;
182182
CHIP_ERROR err = aDecoder.Decode(span);
183-
if (err = CHIP_NO_ERROR)
183+
if (err == CHIP_NO_ERROR)
184184
{
185185
x = X(span.data(), span.size());
186186
}

0 commit comments

Comments
 (0)