XRT icon indicating copy to clipboard operation
XRT copied to clipboard

get_axlf_section in scan.cpp mismatch between new and delete in gcc12

Open bryanloz-xilinx opened this issue 2 years ago • 0 comments

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

bryanloz-xilinx avatar Jun 18 '22 21:06 bryanloz-xilinx