Skip to content
Snippets Groups Projects
Commit 5e473b59 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[eva] fix checking that empty struct are accepted in current config

parent 95fb82c1
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ let create_hidden_base ~libc ~valid ~hidden_var_name ~name_desc pointed_typ = ...@@ -98,7 +98,7 @@ let create_hidden_base ~libc ~valid ~hidden_var_name ~name_desc pointed_typ =
let reject_empty_struct b offset typ = let reject_empty_struct b offset typ =
match Cil.unrollType typ with match Cil.unrollType typ with
| TComp (ci, _, _) -> | TComp (ci, _, _) ->
if ci.cfields = Some [] && not (Cil.gccMode () || Cil.msvcMode ()) then if ci.cfields = Some [] && not (Cil.acceptEmptyCompinfo ()) then
Value_parameters.abort ~current:true Value_parameters.abort ~current:true
"@[empty %ss@ are unsupported@ (type '%a',@ location %a%a)@ \ "@[empty %ss@ are unsupported@ (type '%a',@ location %a%a)@ \
in C99 (only allowed as GCC/MSVC extension).@ Aborting.@]" in C99 (only allowed as GCC/MSVC extension).@ Aborting.@]"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment