Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various compile failures with is_debug=false (project-chip#7586)
- Missing #include <assert.h> in src/lwip/cc13x2_26x2/arch/cc.h: ../../third_party/lwip/repo/lwip/src/api/api_msg.c: In function 'recv_udp': ../../src/lwip/cc13x2_26x2/arch/cc.h:49:35: error: implicit declaration of function 'assert' [-Werror=implicit-function-declaration] 49 | #define LWIP_PLATFORM_ASSERT(MSG) assert(0) | ^~~~~~ ../../third_party/lwip/repo/lwip/src/include/lwip/debug.h:117:3: note: in expansion of macro 'LWIP_PLATFORM_ASSERT' 117 | LWIP_PLATFORM_ASSERT(message); }} while(0) | ^~~~~~~~~~~~~~~~~~~~ ../../third_party/lwip/repo/lwip/src/api/api_msg.c:177:3: note: in expansion of macro 'LWIP_ASSERT' 177 | LWIP_ASSERT("recv_udp must have a pcb argument", pcb != NULL); | ^~~~~~~~~~~ ../../third_party/lwip/repo/lwip/src/api/api_msg.c:58:1: note: 'assert' is defined in header '<assert.h>'; did you forget to '#include <assert.h>'? 57 | #include <string.h> +++ |+#include <assert.h> 58 | Add the missing #include. - Potentially uninitialized variable in groups-server: In file included from ../../src/app/util/af.h:72, from ../../src/app/clusters/groups-server/groups-server.cpp:55: ../../src/app/util/debug-printing.h: In function ‘bool emberAfGroupsClusterGetGroupMembershipCallback(chip::app::Command*, uint8_t, uint8_t*)’: ../../src/app/util/debug-printing.h:137:56: error: ‘status’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 137 | #define emberAfGroupsClusterPrintln(...) emberAfPrintln(EMBER_AF_PRINT_GROUPS_CLUSTER, __VA_ARGS__) | ^ ../../src/app/clusters/groups-server/groups-server.cpp:251:17: note: ‘status’ was declared here 251 | EmberStatus status; | ^~~~~~ Initialize the variable. - Also remove qpg6100 generation in unified debug as this this platform now forces an optimized build due to space constraints. - Finally, make the instructions output by gn_build.sh not override the provided arguments. This script already generates output directories for both debug and release builds. Tested by ./gn_build.sh enable_efr32_builds=true enable_qpg6100_builds=true ninja -C out/release
- Loading branch information