Commit f8136648 by Kaveh R. Ghazi Committed by Kaveh Ghazi

* c-common.c (combine_strings): Only warn about long strings for C.

From-SVN: r37297
parent 71fd5a51
2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-common.c (combine_strings): Only warn about long strings for C.
Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
* combine.c (distribute_notes): Fix typo in last change.
......
......@@ -426,7 +426,7 @@ combine_strings (strings)
/* Compute the number of elements, for the array type. */
nchars = wide_flag ? length / wchar_bytes : length;
if (pedantic && nchars > nchars_max)
if (pedantic && nchars > nchars_max && c_language == clk_c)
pedwarn ("string length `%d' is greater than the minimum length `%d' ISO C%d is required to support",
nchars, nchars_max, flag_isoc99 ? 99 : 89);
......
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