Commit f5c08e17 authored by Paul Eggert's avatar Paul Eggert

* Document --enable-gcc-warnings better.

parent fee5959d
2012-07-06 Paul Eggert <>
* Document --enable-gcc-warnings better.
Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786).
This is safer than strcasecmp, which has unspecified behavior
outside the POSIX locale and in practice sometimes does not work
in multibyte locales. Similarly for c_strncasecmp and strncasecmp.
* (strcasecmp, strncasecmp): Remove checks.
* lib/c-ctype.c, lib/c-ctype.h, lib/c-strcase.h, lib/c-strcasecmp.c:
* lib/c-strncasecmp.c: New files, taken from gnulib.
* lib/, m4/gnulib-comp.m4: Regenerate.
......@@ -575,7 +575,9 @@ gl_EARLY
[turn on lots of GCC warnings (for developers)])],
[turn on lots of GCC warnings. This is intended for
developers, and may generate false alarms when used
with older or non-GNU development tools.])],
[case $enableval in
yes|no) ;;
*) AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;;
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