Address GCC 14 compiler diagnostics
The new T[0]
expressions trigger the -Walloc-zero
and -Walloc-size
(from -Wextra
) diagnostics from GCC 14. According to the C++ standard, it is safe to call delete[]
on a null pointer.
The new T[0]
expressions trigger the -Walloc-zero
and -Walloc-size
(from -Wextra
) diagnostics from GCC 14. According to the C++ standard, it is safe to call delete[]
on a null pointer.