pussuw opened a new pull request, #10343:
URL: https://github.com/apache/nuttx/pull/10343

   ## Summary
   Fixes build error with -Werror:
   
   shm/shmfs.c: In function 'shmfs_read':
   shm/shmfs.c:122:33: error: pointer of type 'void *' used in arithmetic 
[-Werror=pointer-arith]
     122 |       memcpy(buffer, sho->paddr + startpos, nread);
         |                                 ^
   shm/shmfs.c: In function 'shmfs_write':
   shm/shmfs.c:166:25: error: pointer of type 'void *' used in arithmetic 
[-Werror=pointer-arith]
     166 |       memcpy(sho->paddr + startpos, buffer, nwritten);
         |                         ^
   cc1: all warnings being treated as errors
   ## Impact
   Fixes build error with -Werror
   ## Testing
   Code compiles
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to