Commit 819afef1 authored by Garrett Regier's avatar Garrett Regier

Use maximum warnings when compiling

parent ae0e0c0f
......@@ -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
......
......@@ -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;
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment