aboutsummaryrefslogtreecommitdiff
path: root/mfd/drivers.c
diff options
context:
space:
mode:
Diffstat (limited to 'mfd/drivers.c')
-rw-r--r--mfd/drivers.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mfd/drivers.c b/mfd/drivers.c
index 44067c4e..72c3b898 100644
--- a/mfd/drivers.c
+++ b/mfd/drivers.c
@@ -2238,8 +2238,16 @@ code_type_progdecl(NODE *node, struct locus **old_locus)
enum smtp_state tag;
tag = node->v.progdecl.tag;
+
+ if (root_node[tag]) {
+ parse_warning_locus(&node->locus,
+ _("Redefinition of handler `%s'"),
+ state_to_string(tag));
+ parse_warning_locus(&root_node[tag]->locus,
+ _("This is the location of the previous definition"));
+ }
+
root_node[tag] = node->v.progdecl.tree;
-
if (codegen(&entry_point[tag],
node->v.progdecl.tree, 1,
node->v.progdecl.auto_count) == 0)

Return to:

Send suggestions and report system problems to the System administrator.