This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compilation error?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]