aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--array.c4
-rw-r--r--builtin.c4
-rwxr-xr-xconfigure6
-rw-r--r--io.c2
-rw-r--r--m4/ChangeLog4
-rw-r--r--m4/readline.m42
-rw-r--r--pc/ChangeLog5
-rw-r--r--pc/config.h6
-rw-r--r--re.c2
10 files changed, 34 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 38df4db1..fc00a165 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Tue Jan 4 11:21:18 2011 Arnold D. Robbins <arnold@skeeve.com>
+
+ Clean up some compiler warnings:
+
+ * array.c (do_delete): Cast for printf.
+ * builtin.c (do_bindtextdomain): Casts for const char *.
+ * io.c (rs1scan): Cast for indexing of array.
+ * re.c (add_char): Remove unused variables.
+
Fri Dec 31 11:05:11 2010 Michal Jaegermann <michal@harddata.com>
* awk.h (strncasecmpmbs): Change parameters to const char *.
diff --git a/array.c b/array.c
index afdd25bd..c6b531af 100644
--- a/array.c
+++ b/array.c
@@ -703,7 +703,9 @@ do_delete(NODE *symbol, int nsubs)
/* e.g.: a[1] = 1; delete a[1][1] */
free_subs(nsubs);
fatal(_("attempt to use scalar `%s[\"%.*s\"]' as an array"),
- symbol->vname, bucket->ahname_len, bucket->ahname_str);
+ symbol->vname,
+ (int) bucket->ahname_len,
+ bucket->ahname_str);
} else
unref(bucket->ahvalue);
diff --git a/builtin.c b/builtin.c
index 209ae5da..7ae109e7 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2394,13 +2394,13 @@ do_bindtextdomain(int nargs)
if (nargs == 2) { /* second argument */
t2 = POP_STRING();
- domain = t2->stptr;
+ domain = (const char *) t2->stptr;
}
/* first argument */
t1 = POP_STRING();
if (t1->stlen > 0)
- directory = t1->stptr;
+ directory = (const char *) t1->stptr;
the_result = bindtextdomain(domain, directory);
diff --git a/configure b/configure
index 92f90a37..d4dd6c90 100755
--- a/configure
+++ b/configure
@@ -10283,15 +10283,15 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
$as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
#include <stdio.h>
#include <readline/readline.h>
diff --git a/io.c b/io.c
index 6a0224c1..4ab2fe02 100644
--- a/io.c
+++ b/io.c
@@ -2679,7 +2679,7 @@ rs1scan(IOBUF *iop, struct recmatch *recm, SCANSTATE *state)
do {
if (*bp == rs)
found = 1;
- if (is_valid_character(*bp))
+ if (is_valid_character((unsigned char)*bp))
mbclen = 1;
else
mbclen = mbrlen(bp, len, &mbs);
diff --git a/m4/ChangeLog b/m4/ChangeLog
index ac4b5368..26d81c7e 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jan 4 11:09:43 2011 Arnold D. Robbins <arnold@skeeve.com>
+
+ * readline.m4: Really fixed to work correctly with Autoconf 2.68.
+
Sat Dec 25 21:40:25 2010 Arnold D. Robbins <arnold@skeeve.com>
* readline.m4: Fixed to work correctly with Autoconf 2.68.
diff --git a/m4/readline.m4 b/m4/readline.m4
index 2138d28a..9550d997 100644
--- a/m4/readline.m4
+++ b/m4/readline.m4
@@ -30,8 +30,8 @@ AC_DEFUN([GNUPG_CHECK_READLINE],
AC_MSG_CHECKING([whether readline via \"$_combo\" is present and sane])
- AC_LINK_IFELSE([
AC_LANG([C])
+ AC_LINK_IFELSE([
AC_LANG_PROGRAM([
#include <stdio.h>
#include <readline/readline.h>
diff --git a/pc/ChangeLog b/pc/ChangeLog
index e616ad28..b6d7be83 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 4 11:20:40 2011 Arnold Robbins <arnold@skeeve.com>
+
+ * config.h: Add PIPES_SIMULATED and definition of _NFILE for
+ DJGPP.
+
Sat Dec 18 22:12:42 2010 Arnold Robbins <arnold@skeeve.com>
* gawkw32.def: Removed.
diff --git a/pc/config.h b/pc/config.h
index 04ab519d..a7bd593c 100644
--- a/pc/config.h
+++ b/pc/config.h
@@ -527,3 +527,9 @@
#endif
/* #define NO_LINT 1 */
+#if defined(__DJGPP__) /* || defined(__MINGW32__) ??? */
+#define PIPES_SIMULATED 1
+#ifndef _NFILE
+#define _NFILE 40
+#endif
+#endif
diff --git a/re.c b/re.c
index 60fa517b..4f52fb21 100644
--- a/re.c
+++ b/re.c
@@ -635,8 +635,6 @@ add_char(char **bufp, size_t *lenp, char ch, char **ptr)
static char *
expand_range(char *s, size_t *lenp)
{
- int i;
- int found = FALSE;
char *sp, *sp2, *newbuf;
size_t len;
int count = 0;