sdc-g opened a new pull request, #15443:
URL: https://github.com/apache/nuttx/pull/15443

   ## Summary
   
   fix error when "-Werror=sized-deallocation" is enabled.
   
   refer to https://timsong-cpp.github.io/cppwp/n4861/new.delete, displace the 
default versions defined by the C++ standard library.
   
   
   ## Impact
   
   C++ delete operator size and unsize definition location
   
   ## Testing
   
   when "-Werror=sized-deallocation" is enabled, compile error as
   ```
   CXX:  libcxxmini/libxx_newa.cxx libcxxmini/libxx_deletea_sized.cxx:41:6: 
error: the program should also define 'void operator delete [](void*)' 
[-Werror=sized-deallocation]
      41 | void operator delete[](FAR void *ptr, std::size_t size)
   ```
   


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