Bug #9483
closed
Support external function declarations without parameters
Added by Ilya Shchepetkov about 5 years ago.
Updated about 5 years ago.
Description
Aspect:
info: declare_func($ $(..)) {
$fprintf<"declare_func.txt","%s\n",$signature>
}
Code:
extern char *get_parent_id();
Result:
char *get_parent_id(/* LDV: ../../aspectator/gcc/c-family/ldv-pretty-print.c: 1552: parameter type list of direct declarator was not printed */);
- Subject changed from Remove warnings from info request output to Support external function declarations without parameters
- Category set to C back-end
- Priority changed from Normal to Urgent
Although in this particular case removing comment will help, but in other cases there may be serious issues. Thus, instead of suppressing warnings let's fix issues!
- Status changed from New to Resolved
I fixed the issue in 589072b. Please, confirm that the issue is gone.
- Status changed from Resolved to Closed
I suggest that everything is great.
Not that great as it should be. The error is a little bit different though, and it occurs only in 15 function declarations (of 230 000).
/* LDV: ../../aspectator/gcc/c-family/ldv-pretty-print.c: 4121: type specifier was not printed */ strtof32(char const *restrict, char **restrict);
Can't reopen the issue myself.
Ilya Shchepetkov wrote:
Not that great as it should be. The error is a little bit different though, and it occurs only in 15 function declarations (of 230 000).
/* LDV: ../../aspectator/gcc/c-family/ldv-pretty-print.c: 4121: type specifier was not printed */ strtof32(char const *restrict, char **restrict);
Can't reopen the issue myself.
This is completely another issue since it is related with return type rather than with parameters. Please, open it and provide an example. I guess that corresponding C files do not belong to the kernel or modules since, e.g. strtof32 comes from GLIBC. So the priority will not very high.
Also available in: Atom
PDF