Closed no92 closed 2 years ago
Does this change not cause the exact same warning that #18 fixed?
To my own surprise, no. Both managarm-kernel
and mlibc
compile, the former (where the warning originally appeared) even with -Wimplicit-fallthrough -Werror
.
Reworked
operator==
due to a single instance of a line likeif(ret.name == "")
with ret.name being of typefrg::string<something>
in mlibc complaining. This solution is in line with what the C++ spec says (N4835 21.3.3.2 [string.cmp]).