[Lexer] Make not finding a configuration option a warning, not an error.

This commit is contained in:
Dave Davenport 2018-04-28 15:29:17 +02:00
parent 3a726eabba
commit 02baaf4df4
1 changed files with 4 additions and 0 deletions

View File

@ -321,7 +321,11 @@ t_config_property
char *error = NULL;
if ( config_parse_set_property ( $1, &error ) ) {
// TODO Generate error.
#ifdef FATAL_CONFIG_ERROR
yyerror ( &(@$), @$.filename, error );
#else
g_warning("%s:%d:%d: %s\n", @$.filename, @$.first_line, @$.first_column, error);
#endif
g_free(error);
}
}