Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
5e473b59
Commit
5e473b59
authored
4 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/value/domains/cvalue/cvalue_init.ml
+1
-1
1 addition, 1 deletion
src/plugins/value/domains/cvalue/cvalue_init.ml
with
1 addition
and
1 deletion
src/plugins/value/domains/cvalue/cvalue_init.ml
+
1
−
1
View file @
5e473b59
...
@@ -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
.
g
cc
Mode
()
||
Cil
.
msvcMode
()
)
then
if
ci
.
cfields
=
Some
[]
&&
not
(
Cil
.
a
cc
eptEmptyCompinfo
()
)
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.@]"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment