This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Compilation error?
- From: "Bonzini" <bonzini at gnu dot org>
- To: <gcc at gcc dot gnu dot org>,<libc-alpha at sources dot redhat dot com>
- Cc: <beebe at math dot utah dot edu>
- Date: Tue, 10 Dec 2002 02:10:20 +0100
- Subject: Compilation error?
- References: <CMM.0.92.0.1039283053.beebe@suncore.math.utah.edu>
Compilation of the regex matcher from glibc 2.3 fails under SGI IRIX 6.5
with the native compiler. The reported error is:
> cc-1119 c89: ERROR File = regcomp.c, Line = 2029
> The "return" expression type differs from the function return type.
>
> return *err = REG_ESPACE, NULL;
> ^
This is because the returned type for the function is a pointer to struct,
which is compatible with NULL but not with REG_ESPACE. I ask to the ISO C
minds on gcc@gcc.gnu.org whether gcc is misreporting the bug, and tell the
libc-alpha folks that I'll prepare a patch in a day or two.
Paolo