You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/09/17 08:59:21 UTC

[GitHub] [incubator-nuttx-apps] anchao opened a new pull request #389: examples/fb: correct the munmap(2) parameter type

anchao opened a new pull request #389:
URL: https://github.com/apache/incubator-nuttx-apps/pull/389


   
   ## Summary
   examples/fb: correct the munmap(2) parameter type 
   
   
   ```
   fb_main.c: In function 'fb_main':
   fb_main.c:473:15: warning: passing argument 1 of 'munmap' makes pointer from integer without a cast [-Wint-conversion]
     473 |   munmap(state.fd, state.fbmem);
         |          ~~~~~^~~
         |               |
         |               int
   In file included from fb_main.c:43:
   /home/archer/code/upload/incubator-nuttx/include/sys/mman.h:177:22: note: expected 'void *' but argument is of type 'int'
     177 | int munmap(FAR void *start, size_t length);
         |                ~~~~~~^~~~~
   fb_main.c:473:25: warning: passing argument 2 of 'munmap' makes integer from pointer without a cast [-Wint-conversion]
     473 |   munmap(state.fd, state.fbmem);
         |                    ~~~~~^~~~~~
         |                         |
         |                         void *
   In file included from fb_main.c:43:
   /home/archer/code/upload/incubator-nuttx/include/sys/mman.h:177:36: note: expected 'size_t' {aka 'unsigned int'} but argument is of type 'void *'
     177 | int munmap(FAR void *start, size_t length);
         |                             ~~~~~~~^~~~~~
   
   Signed-off-by: chao.an <an...@xiaomi.com>
   ```
   
   
   


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx-apps] anchao commented on pull request #389: examples/fb: correct the munmap(2) parameter type

Posted by GitBox <gi...@apache.org>.
anchao commented on pull request #389:
URL: https://github.com/apache/incubator-nuttx-apps/pull/389#issuecomment-694098352


   Depends on https://github.com/apache/incubator-nuttx/pull/1823


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 merged pull request #389: examples/fb: correct the munmap(2) parameter type

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #389:
URL: https://github.com/apache/incubator-nuttx-apps/pull/389


   


----------------------------------------------------------------
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