new upstream version [ineffective -q option]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cproto (Ubuntu) |
In Progress
|
Low
|
Nil |
Bug Description
The "-q" option of cproto ("Do not output any error messages when the
program cannot read the file specified in an #include directive.")
is not effective.
Example:
$ cat foo.c
#include "foo.h"
#include "bar.h"
int foo(int x, int y)
{
return 0;
}
$ cproto -q foo.c
/* foo.c */
foo.c:1:17: error: foo.h: No such file or directory
foo.c:2:17: error: bar.h: No such file or directory
int foo(int x, int y);
"-q" option sets the `quiet` variable to TRUE (cproto.c), and `quiet`
is only used in lex_yy.c, lines 3030+.
if (!quiet) {
}
Examining the source and a strace log, it seems to come through libc:
access(
Changed in cproto: | |
importance: | Undecided → Low |
Changed in cproto: | |
assignee: | nobody → nicolas-limare |
status: | New → Confirmed |
For the previous message I checked the 4.6 cproto source[1].
In fact the package is built from cproto 4.7e[2].
My remarks are still valid, the only difference is that the last code
fragment refers now to lex.l:1021+ instead of lex_yy.c:3030+.
[1]http:// sourceforge. net/projects/ cproto/ his.com/ cproto/
[2]ftp://dickey.