Bug 167080
Summary: | ftw() syscall incompatible pointer type with gcc4 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | J. Erik Hemdal <erik.hemdal> | ||||
Component: | gcc4 | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i586 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-08-30 07:25:09 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
J. Erik Hemdal
2005-08-30 02:19:13 UTC
Created attachment 118234 [details]
Testcase: compile with 'gcc ftw.c'
1) ftw is not a syscall 2) this is a user error Look at ftw prototype from man page: int ftw(const char *dir, int (*fn)(const char *file, const struct stat *sb, int flag), int nopenfd); or info libc --index-search="ftw" where __ftw_func_t has int (*) (const char *, const struct stat *, int) type. But you are passing a funciton with incompatible type - int (*) (char *, struct stat *, int). Add the const keywords and the warnings will go away. |