Add switch clause to suppress warning
clang (and possibly other compilers) warns about an unhandled clause.
I have taken this change from !1 (closed)
I have preferred abort()ing to suppressing the warning as insurance against programmer error! It may well get optimised out on modern compilers.