From 3e21b2af944133f47b770e26ce720759d8ed52e3 Mon Sep 17 00:00:00 2001
From: edgrif <edgrif>
Date: Thu, 22 Apr 2010 13:49:41 +0000
Subject: [PATCH] fix const compiler warnings.

---
 src/zmapGFF/zmapGFF2Dumper.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/zmapGFF/zmapGFF2Dumper.c b/src/zmapGFF/zmapGFF2Dumper.c
index 52dade7be..1698c7304 100755
--- a/src/zmapGFF/zmapGFF2Dumper.c
+++ b/src/zmapGFF/zmapGFF2Dumper.c
@@ -26,9 +26,9 @@
  *
  * Exported functions: See ZMap/zmapGFF.h
  * HISTORY:
- * Last edited: Apr 24 11:05 2009 (edgrif)
+ * Last edited: Apr 22 14:46 2010 (edgrif)
  * Created: Mon Nov 14 13:21:14 2005 (edgrif)
- * CVS info:   $Id: zmapGFF2Dumper.c,v 1.18 2010-03-04 15:10:36 mh17 Exp $
+ * CVS info:   $Id: zmapGFF2Dumper.c,v 1.19 2010-04-22 13:49:41 edgrif Exp $
  *-------------------------------------------------------------------
  */
 
@@ -36,6 +36,8 @@
 #include <ZMap/zmapFeature.h>
 #include <ZMap/zmapGFF.h>
 
+
+
 #define GFF_SEPARATOR  "\t"
 #define GFF_SEQ        "%s"
 #define GFF_SOURCE     "%s"
@@ -481,9 +483,9 @@ static gboolean dump_gff_cb(ZMapFeatureAny feature_any,
 
 	/* Output a record for the whole feature, fields are:
 	 *      <seqname> <source> <feature> <start> <end> <score> <strand> <frame> */
-	if(!(gff_data->gff_source  = zMapStyleGetGFFSource(style)))
-	  gff_data->gff_source = zMapStyleGetName(style);
-	if(!(gff_data->gff_feature = zMapStyleGetGFFFeature(style)))
+	if(!(gff_data->gff_source  = (char *)zMapStyleGetGFFSource(style)))
+	  gff_data->gff_source = (char *)zMapStyleGetName(style);
+	if(!(gff_data->gff_feature = (char *)zMapStyleGetGFFFeature(style)))
 	  gff_data->gff_feature = (char *)g_quark_to_string(feature->ontology);
 	
 	/* Obligatory fields. */
-- 
GitLab