[metacity] theme-metacity: suppress logically dead code defects
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] theme-metacity: suppress logically dead code defects
- Date: Tue, 16 Mar 2021 13:34:18 +0000 (UTC)
commit f22bcf416fab8769126b12a83e9852b2ff3e3497
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Mar 15 00:02:37 2021 +0200
theme-metacity: suppress logically dead code defects
Coverity CID: #1445656, #1445659
libmetacity/meta-theme-metacity.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/libmetacity/meta-theme-metacity.c b/libmetacity/meta-theme-metacity.c
index 2161a7ccf..762224835 100644
--- a/libmetacity/meta-theme-metacity.c
+++ b/libmetacity/meta-theme-metacity.c
@@ -3485,6 +3485,7 @@ parse_style_set_element (GMarkupParseContext *context,
info->style_set->tiled_right_and_shaded_styles[frame_focus] = frame_style;
break;
+ /* coverity[dead_error_condition] */
case META_FRAME_STATE_LAST:
default:
g_assert_not_reached ();
@@ -5480,6 +5481,7 @@ meta_theme_metacity_draw_frame (MetaThemeImpl *impl,
rect = visible_rect;
break;
+ /* coverity[dead_error_condition] */
case META_FRAME_PIECE_LAST:
default:
g_assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]