Skip to content

Conversation

@gmarcosb
Copy link
Contributor

Summary

Batch 19 of ignored ChipError for #41629

Related issues

#41629

Testing

CI

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • PR title is
    descriptive
  • Apply the
    “When in Rome…”
    rule (coding style)
  • PR size is short
  • Try to avoid "squashing" and "force-update" in commit history
  • CI time didn't increase

See: Pull Request Guidelines

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request is part of a larger effort to address ignored ChipError return values, focusing on Darwin-specific platform code. The changes are well-executed and fall into a few categories:

  1. Most changes correctly introduce TEMPORARY_RETURN_IGNORED to explicitly acknowledge and suppress warnings for intentionally ignored function return values. This aligns with the goal of making the codebase compliant with [[nodiscard]] attributes.
  2. Several changes are more than just warning suppression; they are valuable code improvements. For instance:
    • In MTROTAImageTransferHandler.mm, a potential bug involving an uninitialized variable being returned has been fixed.
    • In MTROperationalCredentialsDelegate.mm, error handling has been added for a previously ignored return value from reader.ExitContainer().
    • In MTRP256KeypairBridge.mm and MTRSessionResumptionStorageBridge.mm, the code has been refactored to use SetLength() and check its return value, which is cleaner and safer.
    • In DnssdImpl.cpp, ChipDnssdStopBrowse now correctly propagates the error from ctx->Finalize().

All changes are beneficial, improving code correctness, robustness, and clarity. The pull request is a solid contribution to improving the overall quality of the codebase.

@github-actions
Copy link

github-actions bot commented Nov 20, 2025

PR #42083: Size comparison from 4859b93 to 038453f

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 4859b93 038453f change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106404 1106404 0 0.0
RAM 178930 178930 0 0.0
bl702 lighting-app bl702+eth FLASH 661476 661476 0 0.0
RAM 135025 135025 0 0.0
bl702+wifi FLASH 837072 837072 0 0.0
RAM 124445 124445 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070676 1070676 0 0.0
RAM 117317 117317 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 901386 901386 0 0.0
RAM 105788 105788 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983422 983422 0 0.0
RAM 109796 109796 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 771180 771180 0 0.0
RAM 103360 103360 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 784008 784008 0 0.0
RAM 108680 108680 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 729052 729052 0 0.0
RAM 97420 97420 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713520 713520 0 0.0
RAM 97636 97636 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 555366 555366 0 0.0
RAM 205776 205776 0 0.0
lock CC3235SF_LAUNCHXL FLASH 589150 589150 0 0.0
RAM 206032 206032 0 0.0
efr32 lock-app BRD4187C FLASH 965192 965192 0 0.0
RAM 123732 123732 0 0.0
BRD4338a FLASH 759520 759520 0 0.0
RAM 254340 254340 0 0.0
window-app BRD4187C FLASH 1060628 1060620 -8 -0.0
RAM 119960 119960 0 0.0
esp32 all-clusters-app c3devkit DRAM 102596 102596 0 0.0
FLASH 1837816 1837816 0 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 934528 934528 0 0.0
RAM 161399 161399 0 0.0
nxp contact mcxw71+release FLASH 694656 694656 0 0.0
RAM 61712 61712 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1679324 1679324 0 0.0
RAM 213980 213980 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1594516 1594516 0 0.0
RAM 211156 211156 0 0.0
light cy8ckit_062s2_43012 FLASH 1460756 1460756 0 0.0
RAM 197776 197776 0 0.0
lock cy8ckit_062s2_43012 FLASH 1494732 1494732 0 0.0
RAM 225648 225648 0 0.0
qpg lighting-app qpg6200+debug FLASH 839104 839104 0 0.0
RAM 127920 127920 0 0.0
lock-app qpg6200+debug FLASH 776316 776316 0 0.0
RAM 118880 118880 0 0.0
realtek light-switch-app rtl8777g FLASH 709256 709256 0 0.0
RAM 107148 107148 0 0.0
lighting-app rtl8777g FLASH 757960 757960 0 0.0
RAM 127296 127296 0 0.0
stm32 light STM32WB5MM-DK FLASH 470592 470592 0 0.0
RAM 141352 141352 0 0.0
telink bridge-app tl7218x FLASH 710590 710590 0 0.0
RAM 90600 90600 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 797094 797094 0 0.0
RAM 41024 41024 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788288 788288 0 0.0
RAM 93700 93700 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 717154 717154 0 0.0
RAM 52068 52068 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 750470 750470 0 0.0
RAM 71108 71108 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 727392 727392 0 0.0
RAM 34800 34800 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602656 602656 0 0.0
RAM 109648 109648 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 820900 820904 4 0.0
RAM 92096 92096 0 0.0

@github-project-automation github-project-automation bot moved this from Todo to In Progress in [Platform] Darwin Nov 21, 2025
@github-actions
Copy link

PR #42083: Size comparison from 4859b93 to 5a0b1fe

Full report (6 builds for cc32xx, nrfconnect, realtek, stm32)
platform target config section 4859b93 5a0b1fe change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 555366 555494 128 0.0
RAM 205776 205800 24 0.0
lock CC3235SF_LAUNCHXL FLASH 589150 589278 128 0.0
RAM 206032 206056 24 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 934528 934664 136 0.0
RAM 161399 161423 24 0.0
realtek light-switch-app rtl8777g FLASH 709256 709376 120 0.0
RAM 107148 107172 24 0.0
lighting-app rtl8777g FLASH 757960 758088 128 0.0
RAM 127296 127320 24 0.0
stm32 light STM32WB5MM-DK FLASH 470592 470720 128 0.0
RAM 141352 141376 24 0.0

@github-actions
Copy link

github-actions bot commented Nov 21, 2025

PR #42083: Size comparison from 4859b93 to 1976b8e

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 4859b93 1976b8e change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106404 1106634 230 0.0
RAM 178930 178954 24 0.0
bl702 lighting-app bl702+eth FLASH 661476 661452 -24 -0.0
RAM 135025 135041 16 0.0
bl702+wifi FLASH 837072 837046 -26 -0.0
RAM 124445 124477 32 0.0
bl706+mfd+rpc+littlefs FLASH 1070676 1070908 232 0.0
RAM 117317 117349 32 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 901386 901618 232 0.0
RAM 105788 105820 32 0.0
lighting-app bl702l+mfd+littlefs FLASH 983422 983654 232 0.0
RAM 109796 109828 32 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 771180 771324 144 0.0
RAM 103360 103384 24 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 784008 784136 128 0.0
RAM 108680 108704 24 0.0
pump-app LP_EM_CC1354P10_6 FLASH 729052 729172 120 0.0
RAM 97420 97444 24 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713520 713648 128 0.0
RAM 97636 97660 24 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 555366 555494 128 0.0
RAM 205776 205800 24 0.0
lock CC3235SF_LAUNCHXL FLASH 589150 589278 128 0.0
RAM 206032 206056 24 0.0
efr32 lock-app BRD4187C FLASH 965192 965304 112 0.0
RAM 123732 123764 32 0.0
BRD4338a FLASH 759520 759720 200 0.0
RAM 254340 254364 24 0.0
window-app BRD4187C FLASH 1060628 1060764 136 0.0
RAM 119960 119960 0 0.0
esp32 all-clusters-app c3devkit DRAM 102596 102620 24 0.0
FLASH 1837816 1837966 150 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 934528 934664 136 0.0
RAM 161399 161423 24 0.0
nxp contact mcxw71+release FLASH 694656 694792 136 0.0
RAM 61712 61736 24 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1679324 1679476 152 0.0
RAM 213980 214004 24 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1594516 1594652 136 0.0
RAM 211156 211180 24 0.0
light cy8ckit_062s2_43012 FLASH 1460756 1460900 144 0.0
RAM 197776 197800 24 0.0
lock cy8ckit_062s2_43012 FLASH 1494732 1494876 144 0.0
RAM 225648 225672 24 0.0
qpg lighting-app qpg6200+debug FLASH 839104 839240 136 0.0
RAM 127920 127944 24 0.0
lock-app qpg6200+debug FLASH 776316 776444 128 0.0
RAM 118880 118904 24 0.0
realtek light-switch-app rtl8777g FLASH 709256 709376 120 0.0
RAM 107148 107172 24 0.0
lighting-app rtl8777g FLASH 757960 758088 128 0.0
RAM 127296 127320 24 0.0
stm32 light STM32WB5MM-DK FLASH 470592 470720 128 0.0
RAM 141352 141376 24 0.0
telink bridge-app tl7218x FLASH 710590 710686 96 0.0
RAM 90600 90624 24 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 797094 797190 96 0.0
RAM 41024 41048 24 0.1
light-app-ota-shell-factory-data tl7218x FLASH 788288 788384 96 0.0
RAM 93700 93724 24 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 717154 717250 96 0.0
RAM 52068 52092 24 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 750470 750566 96 0.0
RAM 71108 71132 24 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 727392 727488 96 0.0
RAM 34800 34824 24 0.1
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602656 602752 96 0.0
RAM 109648 109672 24 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 820900 821000 100 0.0
RAM 92096 92120 24 0.0

@github-actions
Copy link

github-actions bot commented Nov 21, 2025

PR #42083: Size comparison from e123d28 to 4df1081

Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section e123d28 4df1081 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106634 1106634 0 0.0
RAM 178954 178954 0 0.0
bl702 lighting-app bl702+eth FLASH 661452 661452 0 0.0
RAM 135041 135041 0 0.0
bl702+wifi FLASH 837046 837046 0 0.0
RAM 124477 124477 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070954 1070954 0 0.0
RAM 117349 117349 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 901664 901664 0 0.0
RAM 105820 105820 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983700 983700 0 0.0
RAM 109828 109828 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 771332 771332 0 0.0
RAM 103384 103384 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 784144 784144 0 0.0
RAM 108704 108704 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 729180 729180 0 0.0
RAM 97444 97444 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 713656 713656 0 0.0
RAM 97660 97660 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 555494 555494 0 0.0
RAM 205800 205800 0 0.0
lock CC3235SF_LAUNCHXL FLASH 589278 589278 0 0.0
RAM 206056 206056 0 0.0
efr32 lock-app BRD4187C FLASH 965336 965336 0 0.0
RAM 123764 123764 0 0.0
BRD4338a FLASH 759720 759720 0 0.0
RAM 254364 254364 0 0.0
window-app BRD4187C FLASH 1060764 1060764 0 0.0
RAM 119960 119960 0 0.0
esp32 all-clusters-app c3devkit DRAM 102620 102620 0 0.0
FLASH 1837966 1837966 0 0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 934668 934668 0 0.0
RAM 161423 161423 0 0.0
nxp contact mcxw71+release FLASH 694792 694792 0 0.0
RAM 61736 61736 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1679476 1679476 0 0.0
RAM 214004 214004 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1594652 1594652 0 0.0
RAM 211180 211180 0 0.0
light cy8ckit_062s2_43012 FLASH 1460900 1460900 0 0.0
RAM 197800 197800 0 0.0
lock cy8ckit_062s2_43012 FLASH 1494876 1494876 0 0.0
RAM 225672 225672 0 0.0
qpg lighting-app qpg6200+debug FLASH 839256 839256 0 0.0
RAM 127944 127944 0 0.0
lock-app qpg6200+debug FLASH 776460 776460 0 0.0
RAM 118904 118904 0 0.0
realtek light-switch-app rtl8777g FLASH 709392 709392 0 0.0
RAM 107172 107172 0 0.0
lighting-app rtl8777g FLASH 758096 758096 0 0.0
RAM 127320 127320 0 0.0
stm32 light STM32WB5MM-DK FLASH 470728 470728 0 0.0
RAM 141376 141376 0 0.0
telink bridge-app tl7218x FLASH 710692 710692 0 0.0
RAM 90624 90624 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 797190 797190 0 0.0
RAM 41048 41048 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788390 788390 0 0.0
RAM 93724 93724 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 717250 717250 0 0.0
RAM 52092 52092 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 750566 750566 0 0.0
RAM 71132 71132 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 727488 727488 0 0.0
RAM 34824 34824 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602752 602752 0 0.0
RAM 109672 109672 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 821002 821006 4 0.0
RAM 92120 92120 0 0.0

@mergify mergify bot merged commit fbccfe5 into project-chip:master Nov 21, 2025
77 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in [Platform] Darwin Nov 21, 2025
@gmarcosb gmarcosb deleted the nodiscard-19 branch November 25, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants