[gedit] Add a 'default' branch to case statement to make gcc happy
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Add a 'default' branch to case statement to make gcc happy
- Date: Sun, 18 Apr 2010 13:18:54 +0000 (UTC)
commit 01e5c14065c9ea1338086f3c38565139061c9cc7
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Apr 18 15:17:49 2010 +0200
Add a 'default' branch to case statement to make gcc happy
gedit/gedit-document-input-stream.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-document-input-stream.c b/gedit/gedit-document-input-stream.c
index c3b7179..5a1f961 100644
--- a/gedit/gedit-document-input-stream.c
+++ b/gedit/gedit-document-input-stream.c
@@ -178,6 +178,11 @@ get_new_line_size (GeditDocumentInputStream *stream)
case GEDIT_DOCUMENT_NEWLINE_TYPE_CR_LF:
ret = 2;
break;
+
+ default:
+ g_warn_if_reached ();
+ ret = 1;
+ break;
}
return ret;
@@ -256,6 +261,11 @@ get_new_line (GeditDocumentInputStream *stream)
case GEDIT_DOCUMENT_NEWLINE_TYPE_CR_LF:
ret = "\r\n";
break;
+
+ default:
+ g_warn_if_reached ();
+ ret = "\n";
+ break;
}
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]