[CLASSES]: Add a hack for the parm lists in function pointer struct members

To "fix" this:

/* include/linux/timer.h:10 */
struct timer_list {
<SNIP>
        void (*function)();  /*    12     4 */
<SNIP>
ctracer.c:3077: warning: function declaration isn't a prototype

Doing this for now:

struct timer_list {
<SNIP>
        void (*function)(void /* FIXME: add parm list */); /*    12     4 */
<SNIP>

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2006-12-24 14:06:48 -02:00
parent 9de459007b
commit baadeeb7c0
1 changed files with 2 additions and 1 deletions

View File

@ -672,7 +672,8 @@ uint64_t class_member__names(const struct class *type,
class_name_size);
}
snprintf(member_name, member_name_size,
"(*%s)();", self->name ?: "");
"(*%s)(void /* FIXME: add parm list */);",
self->name ?: "");
goto out;
}
}