From: Christoph Mallon Date: Sun, 31 Aug 2008 14:22:57 +0000 (+0000) Subject: Only warn, when assigning pointers and the LHS pointed to type lacks qualifiers ... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=da2fec2c6d3971ef9ec3f1b8914df709eccab5bf;p=cparser Only warn, when assigning pointers and the LHS pointed to type lacks qualifiers (like GCC does). [r21590] --- diff --git a/parser.c b/parser.c index 3b06caf..59fa194 100644 --- 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; }