silence first validation round
[m6w6/ext-psi] / src / parser.re
index 5b7e80e83c24d81a36892167a51bbd6094704351..e7787fc6cd47d64d32f0592f9f6cb5d0ea185308 100644 (file)
@@ -19,8 +19,10 @@ PSI_Parser *PSI_ParserInit(PSI_Parser *P, const char *filename, psi_error_cb err
        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;
        }