acinclude.m4 ([GLIBCXX_ENABLE_C99]): Avoid -Wwrite-strings warning.

2014-05-08  Paolo Carlini  <paolo.carlini@oracle.com>

	* acinclude.m4 ([GLIBCXX_ENABLE_C99]): Avoid -Wwrite-strings warning.
	* configure: Regenerate.

From-SVN: r210206
This commit is contained in:
Paolo Carlini 2014-05-08 09:34:49 +00:00 committed by Paolo Carlini
parent 861c349582
commit a3820abe7c
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2014-05-08 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_ENABLE_C99]): Avoid -Wwrite-strings warning.
* configure: Regenerate.
2014-05-07 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/61023

View File

@ -1052,8 +1052,8 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [
vscanf("%i", args);
vsnprintf(fmt, 0, "%i", args);
vsscanf(fmt, "%i", args);
}],
[snprintf("12", 0, "%i");],
snprintf(fmt, 0, "%i");
}], [],
[glibcxx_cv_c99_stdio=yes], [glibcxx_cv_c99_stdio=no])
])
AC_MSG_RESULT($glibcxx_cv_c99_stdio)

View File

@ -16900,11 +16900,12 @@ else
vscanf("%i", args);
vsnprintf(fmt, 0, "%i", args);
vsscanf(fmt, "%i", args);
snprintf(fmt, 0, "%i");
}
int
main ()
{
snprintf("12", 0, "%i");
;
return 0;
}
@ -16930,11 +16931,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vscanf("%i", args);
vsnprintf(fmt, 0, "%i", args);
vsscanf(fmt, "%i", args);
snprintf(fmt, 0, "%i");
}
int
main ()
{
snprintf("12", 0, "%i");
;
return 0;
}