You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/04/25 11:00:19 UTC

[GitHub] [mynewt-nimble] sjanc opened a new pull request, #1248: nimble/phy/nrf: Fix build with GCC 11.1

sjanc opened a new pull request, #1248:
URL: https://github.com/apache/mynewt-nimble/pull/1248

   Looks like GCC 11.1 doesn't like current code. The looks OK though...
   
   Error: repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c: In
       function 'ble_hw_get_static_addr':
   repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c:118:9: error:
       'memcpy' offset [0, 3] is out of the bounds [0, 0] [-Werror=array-bounds]
     118 |         memcpy(addr->val, (void *)&NRF_FICR->DEVICEADDR[0], 4);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c:119:9: error:
      'memcpy' offset [0, 1] is out of the bounds [0, 0] [-Werror=array-bounds]
     119 |         memcpy(&addr->val[4], (void *)&NRF_FICR->DEVICEADDR[1], 2);


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] sjanc merged pull request #1248: nimble/phy/nrf: Fix build with GCC 11.1

Posted by GitBox <gi...@apache.org>.
sjanc merged PR #1248:
URL: https://github.com/apache/mynewt-nimble/pull/1248


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] utzig commented on pull request #1248: nimble/phy/nrf: Fix build with GCC 11.1

Posted by GitBox <gi...@apache.org>.
utzig commented on PR #1248:
URL: https://github.com/apache/mynewt-nimble/pull/1248#issuecomment-1108495092

   
   <!-- style-bot -->
   
   ## Style check summary
   
   #### No suggestions at this time!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-nimble] sjanc commented on pull request #1248: nimble/phy/nrf: Fix build with GCC 11.1

Posted by GitBox <gi...@apache.org>.
sjanc commented on PR #1248:
URL: https://github.com/apache/mynewt-nimble/pull/1248#issuecomment-1108419116

   it is a bit of an RFC as this seems to be issue on compiler side


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org