OpenXiangShan / NEMU

Other
236 stars 90 forks source link

fix(rvv): compilation error caused by c++17 feature #506

Closed cebarobot closed 2 months ago

cebarobot commented 2 months ago

__attribute_maybe_unused__ is a feature from c++17 standard, which causes compilation error in gcc-9 (Ubuntu 20.04). Also, __attribute__((unused)) is the one which could be used in C.