projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
flush
[m6w6/ext-psi]
/
src
/
parser.re
diff --git
a/src/parser.re
b/src/parser.re
index 5b7e80e83c24d81a36892167a51bbd6094704351..e7787fc6cd47d64d32f0592f9f6cb5d0ea185308 100644
(file)
--- a/
src/parser.re
+++ b/
src/parser.re
@@
-19,8
+19,10
@@
PSI_Parser *PSI_ParserInit(PSI_Parser *P, const char *filename, psi_error_cb err
fp = fopen(filename, "r");
if (!fp) {
fp = fopen(filename, "r");
if (!fp) {
- error(NULL, PSI_WARNING, "Could not open '%s' for reading: %s",
- filename, strerror(errno));
+ if (!(flags & PSI_PARSER_SILENT)) {
+ error(NULL, NULL, PSI_WARNING, "Could not open '%s' for reading: %s",
+ filename, strerror(errno));
+ }
return NULL;
}
return NULL;
}