[gnome-builder/gnome-builder-3-18] git: try to silence both gcc and coverity



commit b6e6ef7d670730b0aa05b8d2cf80035cb5704b22
Author: Christian Hergert <christian hergert me>
Date:   Sat Oct 3 17:04:48 2015 -0700

    git: try to silence both gcc and coverity
    
    -Wswitch-enum complains it's not there, coverity complains that it can't
    be hit. What are you to do.

 libide/git/ide-git-buffer-change-monitor.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libide/git/ide-git-buffer-change-monitor.c b/libide/git/ide-git-buffer-change-monitor.c
index 56bdcc2..8287235 100644
--- a/libide/git/ide-git-buffer-change-monitor.c
+++ b/libide/git/ide-git-buffer-change-monitor.c
@@ -498,10 +498,12 @@ diff_line_cb (GgitDiffDelta *delta,
     case GGIT_DIFF_LINE_ADD_EOFNL:
     case GGIT_DIFF_LINE_DEL_EOFNL:
     case GGIT_DIFF_LINE_FILE_HDR:
-    case GGIT_DIFF_LINE_HUNK_HDR:
     case GGIT_DIFF_LINE_BINARY:
     default:
       break;
+
+    case GGIT_DIFF_LINE_HUNK_HDR:
+      g_assert_not_reached ();
     }
 
   return 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]