[gedit] Use maximum warnings when compiling



commit 819afef1a3d340d138f6ba97a9a04006c76e0d70
Author: Garrett Regier <alias301 gmail com>
Date:   Mon May 31 19:13:48 2010 -0700

    Use maximum warnings when compiling

 configure.ac                          |    2 +-
 gedit/gedit-document-input-stream.c   |   10 +++++-----
 gedit/gedit-smart-charset-converter.c |   12 ++++++------
 3 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index afc4c92..9fdb901 100644
--- a/configure.ac
+++ b/configure.ac
@@ -483,7 +483,7 @@ dnl ================================================================
 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
 AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
 
-GNOME_COMPILE_WARNINGS(yes)
+GNOME_COMPILE_WARNINGS([maximum])
 
 if test "$USE_MAINTAINER_MODE" = "yes"; then
 	enable_deprecations=yes
diff --git a/gedit/gedit-document-input-stream.c b/gedit/gedit-document-input-stream.c
index 673c8ee..dd5e6d0 100644
--- a/gedit/gedit-document-input-stream.c
+++ b/gedit/gedit-document-input-stream.c
@@ -414,9 +414,9 @@ gedit_document_input_stream_read (GInputStream  *stream,
 	{
 		gtk_text_buffer_get_start_iter (dstream->priv->buffer, &iter);
 		dstream->priv->pos = gtk_text_buffer_create_mark (dstream->priv->buffer,
-								 NULL,
-								 &iter,
-								 FALSE);
+								  NULL,
+								  &iter,
+								  FALSE);
 
 		dstream->priv->is_initialized = TRUE;
 	}
@@ -426,7 +426,7 @@ gedit_document_input_stream_read (GInputStream  *stream,
 
 	do
 	{
-		n = read_line (dstream, buffer + read, space_left);
+		n = read_line (dstream, (gchar *)buffer + read, space_left);
 		read += n;
 		space_left -= n;
 	} while (space_left > 0 && n != 0 && dstream->priv->bytes_partial == 0);
@@ -451,7 +451,7 @@ gedit_document_input_stream_read (GInputStream  *stream,
 
 			newline = get_new_line (dstream);
 
-			memcpy (buffer + read, newline, newline_size);
+			memcpy ((gchar *)buffer + read, newline, newline_size);
 
 			read += newline_size;
 			dstream->priv->newline_added = TRUE;
diff --git a/gedit/gedit-smart-charset-converter.c b/gedit/gedit-smart-charset-converter.c
index 341dd50..fa19a14 100644
--- a/gedit/gedit-smart-charset-converter.c
+++ b/gedit/gedit-smart-charset-converter.c
@@ -153,9 +153,9 @@ try_convert (GCharsetConverter *converter,
 	do
 	{
 		res = g_converter_convert (G_CONVERTER (converter),
-		                           inbuf + nread,
+		                           (gchar *)inbuf + nread,
 		                           inbuf_size - nread,
-		                           out + nwritten,
+		                           (gchar *)out + nwritten,
 		                           out_size - nwritten,
 		                           G_CONVERTER_INPUT_AT_END,
 		                           &bytes_read,
@@ -292,10 +292,10 @@ guess_encoding (GeditSmartCharsetConverter *smart,
 }
 
 static GConverterResult
-gedit_smart_charset_converter_convert (GConverter      *converter,
-				       const void      *inbuf,
-				       gsize            inbuf_size,
-				       void            *outbuf,
+gedit_smart_charset_converter_convert (GConverter       *converter,
+				       const void       *inbuf,
+				       gsize             inbuf_size,
+				       void             *outbuf,
 				       gsize             outbuf_size,
 				       GConverterFlags   flags,
 				       gsize            *bytes_read,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]