This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc.dg/cpp/charconst.c vs. WCHAR_TYPE "long int"
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 22 Mar 2002 13:38:56 +0100
- Subject: gcc.dg/cpp/charconst.c vs. WCHAR_TYPE "long int"
Hi,
the testcase gcc.dg/cpp/charconst.c fails on powerpc-linux-gnu because of
an extra warning on this line:
c = L'very long'; /* { dg-warning "too long" "long wide charconst" } */
/home/fsirl/cvsx/gcc31/gcc/testsuite/gcc.dg/cpp/charconst.c: In function `foo':
/home/fsirl/cvsx/gcc31/gcc/testsuite/gcc.dg/cpp/charconst.c:28: warning:
overflow in implicit constant conversion
An additional (int) cast silences this extra warning, is this the right
thing to do?
Franz.