Page MenuHomeFreeBSD

tcp: need default in switch statement for enum.
ClosedPublic

Authored by rscheff on Feb 25 2024, 6:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 10:45 PM
Unknown Object (File)
Fri, Oct 11, 12:56 AM
Unknown Object (File)
Fri, Oct 11, 12:56 AM
Unknown Object (File)
Fri, Oct 11, 12:55 AM
Unknown Object (File)
Fri, Oct 11, 12:21 AM
Unknown Object (File)
Sep 19 2024, 9:06 AM
Unknown Object (File)
Sep 18 2024, 12:09 AM
Unknown Object (File)
Sep 17 2024, 3:22 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This will fix the compiler complaints. Is nothing the right thing to do when we don't know the type? Or is this an artifact of how the type is defined where the compiler thinks its a simple enum, when in fact it isn't....

Apparently I've only checked clang or gccc12 but ont gcc13 - where there are subtle differences in what these compilers consider acceptable;

e.g. clang is fine with impicit typecast from enum to int32, but gcc13 isn't; but once the type is enum, locally my compiler (don't really know if its using gcc12 or clang) accept it without a default clause, but the CI compile jobs fail (and I don't know why this isn't the case locally).

This revision was not accepted when it landed; it landed in state Needs Review.Feb 25 2024, 7:09 PM
This revision was automatically updated to reflect the committed changes.