Compilation error?
Bonzini
bonzini@gnu.org
Mon Dec 9 17:10:00 GMT 2002
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
More information about the Libc-alpha
mailing list