A decade ago, systemtap kindly added a workaround for an issue in our (Gentoo) packaging where we stripped out -Werror too aggressively: https://bugs.gentoo.org/522908. In buildrun.cxx: ``` // A bit of obfuscation for Gentoo's sake. // We *need* -Werror for stapconf to work correctly. // https://bugs.gentoo.org/show_bug.cgi?id=522908 #define WERROR ("-W" "error") ``` Our packaging has long since been fixed. It should be OK to drop the workaround now. I added 5.1 to Gentoo earlier too and dropped all of our seds for -Werror and switched to the new --disable-Werror option (thanks!)
I sent a patch at https://inbox.sourceware.org/systemtap/9ad9aa9fedaf1d9b26fae42afedeec80ea18c58d.1724222681.git.sam@gentoo.org/T/#u but please note I couldn't test it properly.
commit 731a73ce505e