After all the latest fixes, I was surprised emu64 didn't build any more locally on FreeBSD using clang, even without -Werror. The immediate cause were some unscoped bind() (std:: missing) calls that somehow seem to still resolve on Linux. But it also showed clang had some warnings that gcc didn't find.
So, to avoid as many issues as possible, I think it is best to test the build with both major compilers, gcc and clang. Of course this means CI builds take twice the time.
The PR includes fixes for the issues found by clang warnings.
After all the latest fixes, I was surprised emu64 didn't build any more locally on FreeBSD using clang, even without
-Werror
. The immediate cause were some unscopedbind()
(std::
missing) calls that somehow seem to still resolve on Linux. But it also showed clang had some warnings that gcc didn't find.So, to avoid as many issues as possible, I think it is best to test the build with both major compilers, gcc and clang. Of course this means CI builds take twice the time.
The PR includes fixes for the issues found by clang warnings.