Commit 8c729d0d authored by Elliot Lee's avatar Elliot Lee

Add --enable-more-warnings and --enable-fatal-warnings switches. Add



* configure.in: Add --enable-more-warnings and --enable-fatal-warnings switches.
* src/ntl-uri-map.c: Add comment about functionality-in-waiting.
parent e66ad339
1999-12-15 Elliot Lee <sopwith@redhat.com>
* configure.in: Add --enable-more-warnings and --enable-fatal-warnings switches.
* src/ntl-uri-map.c: Add comment about functionality-in-waiting.
1999-12-15 Darin Adler <darin@eazel.com>
* libnautilus/gtkscrollframe.c (gtk_scroll_frame_size_allocate):
......
......@@ -43,19 +43,23 @@ dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
dnl Some additional warning options.
CFLAGS="$CFLAGS \
-W \
-Wcast-align \
-Wchar-subscripts \
-Werror \
-Wmissing-declarations \
-Wmissing-prototypes \
-Wnested-externs \
-Wpointer-arith \
-Wno-sign-compare \
-Wsign-promo \
-trigraphs \
"
AC_ARG_ENABLE(more-warnings, [--enable-more-warnings Maximum compiler warnings],
enable_compile_warnings="$enableval", enable_compile_warnings=yes)
AC_ARG_ENABLE(fatal-warnings, [--enable-fatal-warnings Make warnings fatal],
enable_fatal_warnings="$enableval", enable_fatal_warnings=yes)
# Arg is enabled
if test "$GCC" = "yes" && test "$enable_compile_warnings" != "no"; then
CFLAGS="$CFLAGS \
-W -Wcast-align -Wchar-subscripts \
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wno-sign-compare -Wsign-promo -Wshadow \
-Wpadded -Wundef"
fi
if test "$GCC" = "yes" && test "$enable_fatal_warnings" != "no"; then
CFLAGS="$CFLAGS -Werror"
fi
AC_OUTPUT([
Makefile
......
......@@ -34,7 +34,7 @@ nautilus_navinfo_new(NautilusNavigationInfo *navinfo,
Nautilus_NavigationInfo *old_navinfo,
NautilusView *requesting_view)
{
const gchar *meta_keys[] = {"icon-filename", NULL};
const char *meta_keys[] = {"icon-filename", NULL};
memset(navinfo, 0, sizeof(*navinfo));
navinfo->navinfo.requested_uri = nri->requested_uri;
......@@ -79,6 +79,9 @@ nautilus_navinfo_new(NautilusNavigationInfo *navinfo,
g_message("Content type of %s is %s",
navinfo->navinfo.requested_uri,
navinfo->navinfo.content_type);
/* This is just a hardcoded hack until OAF works with Bonobo.
In the future we will use OAF queries to determine this information. */
if(!strcmp(navinfo->navinfo.content_type, "text/html"))
{
navinfo->content_iid = "embeddable:explorer-html-component";
......
......@@ -34,7 +34,7 @@ nautilus_navinfo_new(NautilusNavigationInfo *navinfo,
Nautilus_NavigationInfo *old_navinfo,
NautilusView *requesting_view)
{
const gchar *meta_keys[] = {"icon-filename", NULL};
const char *meta_keys[] = {"icon-filename", NULL};
memset(navinfo, 0, sizeof(*navinfo));
navinfo->navinfo.requested_uri = nri->requested_uri;
......@@ -79,6 +79,9 @@ nautilus_navinfo_new(NautilusNavigationInfo *navinfo,
g_message("Content type of %s is %s",
navinfo->navinfo.requested_uri,
navinfo->navinfo.content_type);
/* This is just a hardcoded hack until OAF works with Bonobo.
In the future we will use OAF queries to determine this information. */
if(!strcmp(navinfo->navinfo.content_type, "text/html"))
{
navinfo->content_iid = "embeddable:explorer-html-component";
......
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