Skip to content

Conversation

Damian-Nordic
Copy link
Contributor

Problem

Building nRF Connect examples results in the following warnings:

/home/<user>/src/chip/src/app/util/types_stub.h:1748: warning: "BIT" redefined

due to the BIT macro defined both in the Zephyr and src/app/util/types_stub.h.

Summary of Changes

Rename BIT/BYTE_x macros in the ember code to fix the BIT macro redefinition.

Rename BIT/BYTE_x macros from the ember code to fix the BIT
macro redeclaration (the same macro is provided by Zephyr).
list[listLen] = LOW_BYTE(entry.groupId);
list[listLen + 1] = HIGH_BYTE(entry.groupId);
list[listLen] = EMBER_LOW_BYTE(entry.groupId);
list[listLen + 1] = EMBER_HIGH_BYTE(entry.groupId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a reference to this issue, for when this is done :)
#1610

@woody-apple woody-apple merged commit 8c93ec6 into project-chip:master Jan 27, 2021
austinh0 pushed a commit to austinh0/connectedhomeip that referenced this pull request Jan 28, 2021
project-chip#4528)

Rename BIT/BYTE_x macros from the ember code to fix the BIT
macro redeclaration (the same macro is provided by Zephyr).
austinh0 pushed a commit to austinh0/connectedhomeip that referenced this pull request Jan 28, 2021
project-chip#4528)

Rename BIT/BYTE_x macros from the ember code to fix the BIT
macro redeclaration (the same macro is provided by Zephyr).
@Damian-Nordic Damian-Nordic deleted the bit-warnings branch March 16, 2021 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants