new_delete - Wsized-deallocation #304

Closed
opened 2021-04-03 10:27:41 -05:00 by Wiz-IO · 5 comments
Wiz-IO commented 2021-04-03 10:27:41 -05:00 (Migrated from github.com)

pico_standard_link\new_delete.cpp: warning: the program should also define 'void operator delete [](void*, unsigned int)' [-Wsized-deallocation]

workaround

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsized-deallocation"
// the code
#pragma GCC diagnostic pop
pico_standard_link\new_delete.cpp: warning: the program should also define 'void operator delete [](void*, unsigned int)' [-Wsized-deallocation] workaround ```cpp #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wsized-deallocation" // the code #pragma GCC diagnostic pop ```
kilograham commented 2021-04-07 08:24:14 -05:00 (Migrated from github.com)

compiler? version?

compiler? version?
Wiz-IO commented 2021-04-07 08:29:34 -05:00 (Migrated from github.com)

gcc version 7.2.1 20170904 (release)
[ARM/embedded-7-branch revision 255204] (GNU Tools for Arm Embedded Processors 7-2017-q4-major)

gcc version 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204] (GNU Tools for Arm Embedded Processors 7-2017-q4-major)
Wiz-IO commented 2021-04-11 05:21:16 -05:00 (Migrated from github.com)
4 delete - no warn https://github.com/Wiz-IO/framework-wizio-pico/blob/main/SDK/pico/pico_standard_link/new_delete.cpp#L22
lurch commented 2021-05-25 03:42:11 -05:00 (Migrated from github.com)

Fixed by #430 ?

Fixed by #430 ?
kilograham commented 2021-05-25 08:24:48 -05:00 (Migrated from github.com)

merged into develop

merged into develop
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#304
No description provided.