Only warn, when assigning pointers and the LHS pointed to type lacks qualifiers ...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sun, 31 Aug 2008 14:22:57 +0000 (14:22 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 31 Aug 2008 14:22:57 +0000 (14:22 +0000)
[r21590]

parser.c

index 3b06caf..59fa194 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -959,9 +959,9 @@ static void report_assign_error(assign_error_t error, type_t *orig_type_left,
                /* the left type has all qualifiers from the right type */
                unsigned missing_qualifiers
                        = points_to_right->base.qualifiers & ~points_to_left->base.qualifiers;
-               errorf(source_position,
-                      "destination type '%T' in %s from type '%T' lacks qualifiers '%Q' in pointed-to type",
-                      orig_type_left, context, orig_type_right, missing_qualifiers);
+               warningf(source_position,
+                        "destination type '%T' in %s from type '%T' lacks qualifiers '%Q' in pointed-to type",
+                        orig_type_left, context, orig_type_right, missing_qualifiers);
                return;
        }