From 3b58128899aa89525c25eabe9a036021481c295d Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Thu, 21 Jan 2016 22:30:17 +0100
Subject: Fixed compilation and compilation warnings.

---
 ChangeLog                 | 6 ++++++
 src/glibext/gcodebuffer.c | 6 +++++-
 src/glibext/gcodebuffer.h | 2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 204c090..bd3deba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 16-01-21  Cyrille Bagard <nocbos@gmail.com>
 
+	* src/glibext/gcodebuffer.c:
+	* src/glibext/gcodebuffer.h:
+	Fix compilation and compilation warnings.
+
+16-01-21  Cyrille Bagard <nocbos@gmail.com>
+
 	* src/analysis/disass/disassembler.c:
 	* src/analysis/disass/output.c:
 	* src/arch/instruction.c:
diff --git a/src/glibext/gcodebuffer.c b/src/glibext/gcodebuffer.c
index f3634f0..f96212c 100644
--- a/src/glibext/gcodebuffer.c
+++ b/src/glibext/gcodebuffer.c
@@ -1020,10 +1020,14 @@ static bool _g_code_buffer_delete_lines_comment(GCodeBuffer *buffer, GBufferLine
 
 bool g_code_buffer_delete_lines_comment(GCodeBuffer *buffer, GBufferLine *line)
 {
-    _g_code_buffer_delete_lines_comment(buffer, line);
+    bool result;                            /* Bilan à retourner           */
+
+    result = _g_code_buffer_delete_lines_comment(buffer, line);
 
     /* TODO : emit() */
 
+    return result;
+
 }
 
 
diff --git a/src/glibext/gcodebuffer.h b/src/glibext/gcodebuffer.h
index 0f2d601..d04ed76 100644
--- a/src/glibext/gcodebuffer.h
+++ b/src/glibext/gcodebuffer.h
@@ -73,7 +73,7 @@ void g_code_buffer_delete_lines(GCodeBuffer *, size_t, size_t);
 
 /* FIXME */
 #define g_code_buffer_append_new_line_fixme(b) \
-    g_code_buffer_append_new_line(b, (mrange_t []){ { 0, 0 }, 0 })
+    g_code_buffer_prepare_new_line(b, (mrange_t []){ { 0, 0 }, 0 })
 
 /* FIXME */
 #define g_code_buffer_insert_at(buf, a, b) NULL
-- 
cgit v0.11.2-87-g4458