C++20 standard added [[nodiscard]] attribute to operator new definitions. In case value returned by operator new is ignored, compiler emits a warning. The commit adds the attribute to operator new definitions. Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| include | ||
| CMakeLists.txt | ||
| cpp_ctors.c | ||
| cpp_dtors.c | ||
| cpp_init_array.c | ||
| cpp_init.c | ||
| cpp_new.cpp | ||
| cpp_virtual.c | ||
| cpp_vtable.cpp | ||
| Kconfig | ||