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



commit a11661989b8b962a9be9d5a250e3c2dc33f45ee5
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]