Author: jeff Date: Wed Feb 19 22:34:22 2020 New Revision: 358133 URL: https://svnweb.freebsd.org/changeset/base/358133
Log: Silence a gcc warning about no return from a function that handles every possible enum in a switch statement. I verified that this emits nothing as expected on clang. radix relies on constant propagation to eliminate any branching from these access routines. Reported by: lwhsu/tinderbox Modified: head/sys/vm/vm_radix.c Modified: head/sys/vm/vm_radix.c ============================================================================== --- head/sys/vm/vm_radix.c Wed Feb 19 21:12:59 2020 (r358132) +++ head/sys/vm/vm_radix.c Wed Feb 19 22:34:22 2020 (r358133) @@ -208,6 +208,8 @@ vm_radix_node_load(smrnode_t *p, enum vm_radix_access case SMR: return (smr_entered_load(p, vm_radix_smr)); } + /* This is unreachable, silence gcc. */ + panic("vm_radix_node_get: Unknown access type"); } static __inline void _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"