summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/glibext/gcodebuffer.c6
-rw-r--r--src/glibext/gcodebuffer.h2
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