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 2019/09/25 05:18:54 UTC

[GitHub] [mynewt-nimble] prasad-alatkar commented on issue #583: NimBLE/host: Fix multiple `discard const qualifier` warnings

prasad-alatkar commented on issue #583: NimBLE/host: Fix multiple `discard const qualifier` warnings
URL: https://github.com/apache/mynewt-nimble/pull/583#issuecomment-534856606
 
 
   These warnings are thrown with `make` build system, also when compiler option `Enable -Wwrite-strings warning flag` are enabled. Below are the actual warnings for reference:
   ```
   esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gatts.c:1249:26: **warning:** passing argument 5 of 'os_mempool_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
                             "ble_gatts_clt_cfg_pool");
   ```
   and 
   ```
   esp-idf/components/bt/host/nimble/nimble/porting/nimble/include/os/os_mempool.h:173:12: **note:** expected 'char *' but argument is of type 'const char *'
    os_error_t os_mempool_init(struct os_mempool *mp, uint16_t blocks,
               ^
   ```
   
   I understand we can always ignore these warnings by adding CFLAG ` -Wno-discarded-qualifiers flag`.  

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services