Closed jn64 closed 1 year ago
ok, this should be fixed now. The current master builds with -Wall -Werror
on my system without warnings/errors.
Yes, most of these warnings were from unused variables, i.e. harmless but sloppy on my side. The printf(os::terminal::RED.c_str());
showing in the log was more worrisome/stupid (well, git blame
claims, I wrote that at 1am during a busy week). Definitely good to clean up.
Thanks a lot for reporting and also for trying out! Please let me know, if you run into more issues.
Thanks! 57999be builds fine now.
I'm building latest master e0ac02a of tsunami as an rpm package on Fedora 37, gcc 12.2.1.
The rpm macros in Fedora include this compiler flag
-Werror=format-security
by default, which causes the build to fail.I can just unset it with
-Wno-error=format-security
and build successfully, so it's not a problem for me as a user.However I don't know how serious these warnings actually are (in the context of tsunami) and if it's something you'd want to fix, so I'm letting you know. If it's harmless then the issue can be closed.
Here is Fedora's documentation on the subject. Debian and Ubuntu also set it by default.
Here is the relevant part of the build log, the last 2 steps before failing: