Skip to content
Snippets Groups Projects
Commit e1baea7b authored by Julien Signoles's avatar Julien Signoles
Browse files

remove a spurious warning when an annotated function is first declared, then defined

parent 0591af49
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
# E-ACSL: the Whole E-ACSL plug-in # E-ACSL: the Whole E-ACSL plug-in
############################################################################### ###############################################################################
- E-ACSL [2014/03/26] Remove a spurious warning when an annotated
function is first declared, then defined.
-* E-ACSL [2014/03/25] Fix bug #1716 with annotations in while(1). -* E-ACSL [2014/03/25] Fix bug #1716 with annotations in while(1).
-* E-ACSL [2014/03/25] Fix bug #1715 about -e-acsl-full-mmodel which -* E-ACSL [2014/03/25] Fix bug #1715 about -e-acsl-full-mmodel which
generates incorrect code. generates incorrect code.
......
...@@ -301,7 +301,9 @@ class dup_functions_visitor prj = object (self) ...@@ -301,7 +301,9 @@ class dup_functions_visitor prj = object (self)
| [ GVarDecl(_, vi, _) | GFun({ svar = vi }, _) as g ] -> | [ GVarDecl(_, vi, _) | GFun({ svar = vi }, _) as g ] ->
(match g with (match g with
| GVarDecl _ -> | GVarDecl _ ->
if vi.vname <> "malloc" && vi.vname <> "free" then if not (Kernel_function.is_definition (Extlib.the self#current_kf))
&& vi.vname <> "malloc" && vi.vname <> "free"
then
Options.warning "@[annotating undefined function `%a':@ \ Options.warning "@[annotating undefined function `%a':@ \
the generated program may miss memory instrumentation@ \ the generated program may miss memory instrumentation@ \
if there are memory-related annotations.@]" if there are memory-related annotations.@]"
......
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