-
- Downloads
Only warn on invalid redeclarations of predefined entities
Downgrade the error message to a warning since the error was ignored, anyway. Also print the name of redeclared entity. For a proper fix that also shows filename and line number of the invalid redeclaration, we'd have to - pass the parser context to the entity functions somehow, or - make these functions return distinct error codes. Partial fix for #308.
Showing
- entities.c 19 additions, 2 deletionsentities.c
- result/errors/ent_redecl.xml 3 additions, 0 deletionsresult/errors/ent_redecl.xml
- result/errors/ent_redecl.xml.ent 1 addition, 0 deletionsresult/errors/ent_redecl.xml.ent
- result/errors/ent_redecl.xml.err 1 addition, 0 deletionsresult/errors/ent_redecl.xml.err
- result/errors/ent_redecl.xml.str 1 addition, 0 deletionsresult/errors/ent_redecl.xml.str
- test/errors/ent_redecl.xml 4 additions, 0 deletionstest/errors/ent_redecl.xml
result/errors/ent_redecl.xml
0 → 100644
result/errors/ent_redecl.xml.ent
0 → 100644
result/errors/ent_redecl.xml.err
0 → 100644
result/errors/ent_redecl.xml.str
0 → 100644
test/errors/ent_redecl.xml
0 → 100644
Please register or sign in to comment