[dia] [warningectomy] dxf-import w/o gcc warnings
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] dxf-import w/o gcc warnings
- Date: Sun, 19 Jun 2011 18:51:12 +0000 (UTC)
commit 6da629d05f4aece774707478454034faddafa3e1
Author: Hans Breuer <hans breuer org>
Date: Sun Jun 19 20:52:05 2011 +0200
[warningectomy] dxf-import w/o gcc warnings
dxf-import.c:101: warning: return type defaults to 'int'
dxf-import.c: In function '_dxf_color_set_by_layer':
dxf-import.c:105: warning: control reaches end of non-void function
dxf-import.c: At top level:
dxf-import.c:87: warning: 'read_entity_mesurement_dxf' declared 'static'
but never defined
plug-ins/dxf/dxf-import.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/dxf/dxf-import.c b/plug-ins/dxf/dxf-import.c
index dc7b39c..29dd94e 100644
--- a/plug-ins/dxf/dxf-import.c
+++ b/plug-ins/dxf/dxf-import.c
@@ -80,11 +80,9 @@ static DiaObject *read_entity_arc_dxf(FILE *filedxf, DxfData *data, DiagramData
static DiaObject *read_entity_solid_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
static DiaObject *read_entity_polyline_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
static DiaObject *read_entity_text_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
-static void read_entity_measurement_dxf(FILE *filedxf, DxfData *data,
- DiagramData *dia);
+static void read_entity_measurement_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
static void read_entity_scale_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
static void read_entity_textsize_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
-static void read_entity_mesurement_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
static void read_table_layer_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
static void read_section_header_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
static void read_section_classes_dxf(FILE *filedxf, DxfData *data, DiagramData *dia);
@@ -96,7 +94,7 @@ static LineStyle get_dia_linestyle_dxf(char *dxflinestyle);
GHashTable *_color_by_layer_ht = NULL;
-static
+static void
_dxf_color_set_by_layer (const Layer *layer, int color_index)
{
if (!_color_by_layer_ht) /* lazy creation */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]