Bug #697
config/ConfigureChecks.cmake: STRERROR_R_CHAR_P revisited
Start date:
20 Apr 2010
Due date:
% Done:
100%
Estimated time:
Description
Current test for return type of strerror_r is weak. See the script below
Script started on Tue Apr 20 15:51:20 2010
$ cat foo.c
#include <string.h>
int main() {
char * c;
c = strerror_r(0,c,0);
return 0;
}
$ gcc -c foo.c
foo.c: In function 'main':
foo.c:4: warning: assignment makes pointer from integer without a cast
$ gcc --version
gcc (GCC) 4.2.1 20070719 [FreeBSD]
Script done on Tue Apr 20 15:51:31 2010
Related issues
Associated revisions
History
Updated by Robin Mills over 8 years ago
- Category set to build
- Target version set to 0.25
Deferred for 0.25.
Updated by Robin Mills about 7 years ago
- Status changed from Assigned to Resolved
Fix submitted: r3372
I'm not confident about the fix here, however the issue has been open for 4 years without causing distress. strerror_r is tricky and only used in futils.cpp
#697. config/ConfigureChecks.cmake: STRERROR_R_CHAR_P revisited