diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2016-09-01 11:10:16 +0200 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2016-09-01 11:10:16 +0200 |
commit | a4bf0090177fa62a6a6bbce68a7bb6229204494d (patch) | |
tree | 1e4dcefb656feb8c3fc7022f194c3a2c426fc1bb | |
parent | 4d6c9149ce2ce2dfedd7db4ab9ad2b9e5750607e (diff) | |
download | compcert-a4bf0090177fa62a6a6bbce68a7bb6229204494d.tar.gz compcert-a4bf0090177fa62a6a6bbce68a7bb6229204494d.zip |
Reworded warning. Bug 18004
-rw-r--r-- | cparser/Elab.ml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cparser/Elab.ml b/cparser/Elab.ml index bd5b1700..aa11ebf7 100644 --- a/cparser/Elab.ml +++ b/cparser/Elab.ml @@ -1004,16 +1004,16 @@ let check_init_type loc env a ty = else if wrap2 valid_cast loc env a.etyp ty then if wrap2 int_pointer_conversion loc env a.etyp ty then warning loc Int_conversion - "incompatible integer-pointer conversion initializing %a with an expression of type %a" - (print_typ env) ty (print_typ env) a.etyp + "incompatible integer-pointer conversion initializer has type %a instead of the expected type %a" + (print_typ env) a.etyp (print_typ env) ty else warning loc Unnamed - "incompatible conversion initializing %a with an expression of type %a" - (print_typ env) ty (print_typ env) a.etyp + "incompatible conversion initializer has type %a instead of the expected type %a" + (print_typ env) a.etyp (print_typ env) ty else error loc - "initializing %a with an expression of incompatible type %a" - (print_typ env) ty (print_typ env) a.etyp + "initializer has type %a instead of the expected type %a" + (print_typ env) a.etyp (print_typ env) ty (* Representing initialization state using zippers *) |