]> git.saurik.com Git - bison.git/blobdiff - src/reader.c
Merge branch 'maint'
[bison.git] / src / reader.c
index 52c0b13983440fca9fcae407645098f8b6a58795..f658e64e9f49b600e97bd80ad65f048aa55acafc 100644 (file)
@@ -128,11 +128,16 @@ record_merge_function_type (int merger, uniqstr type, location declaration_loc)
   aver (merge_function != NULL && merger_find == merger);
   if (merge_function->type != NULL && !UNIQSTR_EQ (merge_function->type, type))
     {
-      complain_at (declaration_loc, complaint,
-                   _("result type clash on merge function %s: <%s> != <%s>"),
-                   quote (merge_function->name), type, merge_function->type);
-      complain_at (merge_function->type_declaration_location, complaint,
-                   _("previous declaration"));
+      unsigned indent = 0;
+      complain_at_indent (declaration_loc, complaint, &indent,
+                          _("result type clash on merge function %s: "
+                            "<%s> != <%s>"),
+                          quote (merge_function->name), type,
+                          merge_function->type);
+      indent += SUB_INDENT;
+      complain_at_indent (merge_function->type_declaration_location, complaint,
+                          &indent,
+                          _("previous declaration"));
     }
   merge_function->type = uniqstr_new (type);
   merge_function->type_declaration_location = declaration_loc;