Skip to content

Commit 22a7d21

Browse files
committed
Change function type attribute errors to warnings (PR #55)
1 parent 3905065 commit 22a7d21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontc/cabs2cil.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2870,10 +2870,10 @@ and doType (nameortype: attributeClass) (* This is AttrName if we are doing
28702870
(cabsTypeAddAttributes a1f tf), ap)
28712871
| _ ->
28722872
if a1f <> [] && not a1fadded then
2873-
E.s (error "Invalid position for (prefix) function type attributes:%a"
2873+
ignore (warn "Invalid position for (prefix) function type attributes:%a"
28742874
d_attrlist a1f);
28752875
if a2f <> [] then
2876-
E.s (error "Invalid position for (post) function type attributes:%a"
2876+
ignore (warn "Invalid position for (post) function type attributes:%a"
28772877
d_attrlist a2f);
28782878
restyp
28792879
in

0 commit comments

Comments
 (0)