https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116729
--- Comment #1 from Hime Haieto <himehaieto at gmail dot com> --- This PR is about C23, but I think it's interesting to note that -Wno-unused does actually work to suppress this warning in g++ (at least for c++17), although [[maybe_unused]] fails to do so. Neither option works for C23 code.