Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7df2d7b9 authored by Vincent Lefèvre's avatar Vincent Lefèvre
Browse files

[acinclude.m4] Added missing "const" qualifier to "char *" in a test;

needed with GCC's "-Wwrite-strings -Werror".
(merged changeset r13519 from the trunk)

[From SVN r13520 (branches/4.0)]
parent cfc87551
No related branches found
No related tags found
No related merge requests found
...@@ -438,12 +438,14 @@ if test "$mpfr_cv_nanisnan" = "yes"; then ...@@ -438,12 +438,14 @@ if test "$mpfr_cv_nanisnan" = "yes"; then
AC_MSG_WARN([platform and/or document the behavior.]) AC_MSG_WARN([platform and/or document the behavior.])
fi fi
dnl Check if the chars '0' to '9' are consecutive values dnl Check if the chars '0' to '9', 'a' to 'z', and 'A' to 'Z' are
dnl consecutive values.
dnl The const is necessary with GCC's "-Wwrite-strings -Werror".
AC_MSG_CHECKING([if charset has consecutive values]) AC_MSG_CHECKING([if charset has consecutive values])
AC_RUN_IFELSE([AC_LANG_PROGRAM([[ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
char *number = "0123456789"; const char *number = "0123456789";
char *lower = "abcdefghijklmnopqrstuvwxyz"; const char *lower = "abcdefghijklmnopqrstuvwxyz";
char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; const char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
]],[[ ]],[[
int i; int i;
unsigned char *p; unsigned char *p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment