summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gl/m4/warnings.m415
1 files changed, 8 insertions, 7 deletions
diff --git a/gl/m4/warnings.m4 b/gl/m4/warnings.m4
index 686d8c7e07..3585c3eebc 100644
--- a/gl/m4/warnings.m4
+++ b/gl/m4/warnings.m4
@@ -114,16 +114,17 @@ AC_DEFUN([gl_WARN_SUPPORTED],
# does OUTVAR = LISTVAR \ REMOVEVAR.
AC_DEFUN([gl_WARN_COMPLEMENT],
[
- FOO=
- set -- "$2"
- for w in $_; do
- case "$3" in
- *" $w "* | *" $w" | "$w "*)
+ gl_warn_set=
+ set x $2; shift
+ for gl_warn_item
+ do
+ case " $3 " in
+ *" $gl_warn_item "*)
;;
*)
- FOO="$FOO $w"
+ gl_warn_set="$gl_warn_set $gl_warn_item"
;;
esac
done
- $1=$FOO
+ $1=$gl_warn_set
])