Add -Wall when compiling with GCC.

Add ctype.h include...
This commit is contained in:
Michael R Sweet 2003-06-04 00:30:04 +00:00
parent 9ee636328b
commit c1093723a9
3 changed files with 14 additions and 4 deletions

4
configure vendored
View File

@ -2359,6 +2359,10 @@ esac
if test -n "$GCC"; then
CFLAGS="-Wall $CFLAGS"
fi
ac_config_files="$ac_config_files Makefile" ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure # This file is a shell script that caches the results of configure

View File

@ -1,5 +1,5 @@
dnl dnl
dnl "$Id: configure.in,v 1.1 2003/06/03 19:46:30 mike Exp $" dnl "$Id: configure.in,v 1.2 2003/06/04 00:30:04 mike Exp $"
dnl dnl
dnl Configuration script for mini-XML, a small XML-like file parsing library. dnl Configuration script for mini-XML, a small XML-like file parsing library.
dnl dnl
@ -37,9 +37,14 @@ esac
AC_SUBST(ARFLAGS) AC_SUBST(ARFLAGS)
dnl Add -Wall for GCC...
if test -n "$GCC"; then
CFLAGS="-Wall $CFLAGS"
fi
dnl Output the makefile... dnl Output the makefile...
AC_OUTPUT(Makefile) AC_OUTPUT(Makefile)
dnl dnl
dnl End of "$Id: configure.in,v 1.1 2003/06/03 19:46:30 mike Exp $". dnl End of "$Id: configure.in,v 1.2 2003/06/04 00:30:04 mike Exp $".
dnl dnl

5
mxml.h
View File

@ -1,5 +1,5 @@
/* /*
* "$Id: mxml.h,v 1.2 2003/06/03 20:24:28 mike Exp $" * "$Id: mxml.h,v 1.3 2003/06/04 00:30:04 mike Exp $"
* *
* Header file for mini-XML, a small XML-like file parsing library. * Header file for mini-XML, a small XML-like file parsing library.
* *
@ -30,6 +30,7 @@
# include <stdio.h> # include <stdio.h>
# include <stdlib.h> # include <stdlib.h>
# include <string.h> # include <string.h>
# include <ctype.h>
/* /*
@ -132,5 +133,5 @@ extern mxml_node_t *mxmlWalkPrev(mxml_node_t *node, mxml_node_t *top);
/* /*
* End of "$Id: mxml.h,v 1.2 2003/06/03 20:24:28 mike Exp $". * End of "$Id: mxml.h,v 1.3 2003/06/04 00:30:04 mike Exp $".
*/ */