On Sun, Sep 25, 2022 at 11:37:31AM -0700, Michael Galassi wrote: > I've developed the habit of closing all non-exhaustive switches where > no sensible default exists with a default which asserts with a > meaningful diagnostic. Doing so has helped me find a number of my own > mistaken assumptions. I suspect, however, that a project with as many > eyes on it as this one won't have too many of those.
I wouldn't mind a warning in the non-reachable block. I *do* mind adding default switch/case over enumerated type. Let the compiler work us by flagging missing cases when adding new enum values. Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel