Commit 15af91ef authored by Darin Adler's avatar Darin Adler

Use more warnings when compiling from CVS. Flag to tell configure.in that

	* configure.in: Use more warnings when compiling from CVS.
	* CVSVERSION: Flag to tell configure.in that these are
	CVS sources, not a tarball.

	* Makefile.am: Set log domain to "librsvg", disable
	deprecated stuff from glib, gdk, and gtk.

	* rsvg-css.c: (rsvg_css_parse_color): Use new
	g_string_ascii_down instead of deprecated g_string_down.
	* test-ft-gtk.c: (new_test_window): Use gtk_widget_set_usize
	instead of deprecated gtk_drawing_area_set_size.
	(main): Remove unnecessary call to deprecated gdk_rgb_init.
parent 074cc0e4
2001-07-25 Darin Adler <darin@bentspoon.com>
* configure.in: Use more warnings when compiling from CVS.
* CVSVERSION: Flag to tell configure.in that these are
CVS sources, not a tarball.
* Makefile.am: Set log domain to "librsvg", disable
deprecated stuff from glib, gdk, and gtk.
* rsvg-css.c: (rsvg_css_parse_color): Use new
g_string_ascii_down instead of deprecated g_string_down.
* test-ft-gtk.c: (new_test_window): Use gtk_widget_set_usize
instead of deprecated gtk_drawing_area_set_size.
(main): Remove unnecessary call to deprecated gdk_rgb_init.
2001-07-24 Darin Adler <darin@bentspoon.com>
* .cvsignore: Don't ignore files that aren't made any more.
......
......@@ -50,6 +50,10 @@ INCLUDES =\
$(GTK_CFLAGS) \
$(XML_CFLAGS) \
$(ART_CFLAGS) \
-DG_LOG_DOMAIN=\"librsvg\" \
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DDATADIR="\"$(datadir)\""
DEPS = $(top_builddir)/librsvg.la
......
......@@ -138,6 +138,48 @@ AC_SUBST(LIBRSVG_LIBS)
AC_C_BIGENDIAN
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
AC_ARG_ENABLE(more-warnings,
[ --enable-more-warnings Maximum compiler warnings],
set_more_warnings="$enableval",[
if test -f $srcdir/CVSVERSION; then
is_cvs_version=true
set_more_warnings=yes
else
set_more_warnings=no
fi
])
AC_MSG_CHECKING(for more warnings, including -Werror)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
AC_MSG_RESULT(yes)
CFLAGS="\
-Wall \
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wcast-align -Wsign-compare \
-Werror \
$CFLAGS"
for option in -Wsign-promo -Wno-sign-compare; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$option $CFLAGS"
AC_MSG_CHECKING([whether gcc understands $option])
AC_TRY_COMPILE([], [],
has_option=yes,
has_option=no,)
if test $has_option = no; then
CFLAGS="$SAVE_CFLAGS"
fi
AC_MSG_RESULT($has_option)
unset has_option
unset SAVE_CFLAGS
done
unset option
else
AC_MSG_RESULT(no)
fi
AC_OUTPUT([
librsvg.spec
librsvg-features.h
......
......@@ -161,7 +161,7 @@ rsvg_css_parse_color (const char *str)
g_hash_table_insert (colors, "aqua", GINT_TO_POINTER (0x00FFFF));
}
string = g_string_down (g_string_new (str));
string = g_string_ascii_down (g_string_new (str));
/* this will default to black on a failed lookup */
val = GPOINTER_TO_INT (g_hash_table_lookup (colors, string->str));
......
......@@ -327,7 +327,7 @@ static TestCtx *new_test_window (const char *fn, const char *afn,
gtk_container_add (GTK_CONTAINER (topwin), vbox);
drawingarea = gtk_drawing_area_new ();
gtk_drawing_area_size (GTK_DRAWING_AREA (drawingarea), width, height);
gtk_widget_set_usize (drawingarea, width, height);
gtk_box_pack_start (GTK_BOX (vbox), drawingarea, TRUE, TRUE, 0);
ctx->ctx = rsvg_ft_ctx_new ();
......@@ -437,8 +437,6 @@ int main(int argc, char **argv)
gtk_init (&argc, &argv);
gdk_rgb_init ();
optCtx =
poptGetContext("test-ft", argc, (const char **) argv,
optionsTable, 0);
......
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