XRT
XRT copied to clipboard
get_axlf_section in scan.cpp mismatch between new and delete in gcc12
get_axlf_section from scan.cpp uses shared_ptr to an array, which causes warnings in gcc12.
mismatch of new, and delete.
Per discussion with @stsoe this should just be a Vector.
Additionally, the function seems to be unused. Is that true? Can we delete it? It is certainly unused within the context of XRT user space.
https://github.com/Xilinx/XRT/blob/master/src/runtime_src/core/pcie/linux/scan.cpp#L1069 https://github.com/Xilinx/XRT/blob/master/src/runtime_src/core/pcie/linux/scan.cpp#L1069