GNOME Bugzilla – Bug 788787
gtktextview: Add a missing g_assert_not_reached() for switch default
Last modified: 2017-10-11 16:27:36 UTC
Trivial patch attached.
Created attachment 361258 [details] [review] gtktextview: Add a missing g_assert_not_reached() for switch default Clarifies the code and helps catch invalid enum values before they propagate further. Also add a comment about why two seemingly legitimate values are not handled there (they’re handled higher up in the file). Coverity CID: 1457700 Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 361258 [details] [review]: ok, thanks for adding a clarifying comment
Attachment 361258 [details] pushed as 7e8831d - gtktextview: Add a missing g_assert_not_reached() for switch default