Bug #697
config/ConfigureChecks.cmake: STRERROR_R_CHAR_P revisited
Status: | Closed | Start date: | 20 Apr 2010 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Robin Mills | % Done: | 100% | |
Category: | build | |||
Target version: | 0.25 |
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
#697. config/ConfigureChecks.cmake: STRERROR_R_CHAR_P revisited
History
#1 Updated by Andreas Huggel almost 7 years ago
- Assignee set to Robin Mills
#2 Updated by Robin Mills over 6 years ago
- Status changed from New to Assigned
#3 Updated by Robin Mills over 5 years ago
- Category set to build
- Target version set to 0.25
Deferred for 0.25.
#4 Updated by Robin Mills over 4 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
#5 Updated by Robin Mills almost 4 years ago
- % Done changed from 0 to 100
#6 Updated by Andreas Huggel over 3 years ago
- Status changed from Resolved to Closed