Skip to content

Commit a1c5df5

Browse files
committed
CHB:CIL/x86 fix warnings
1 parent e15f2a5 commit a1c5df5

File tree

10 files changed

+10
-18
lines changed

10 files changed

+10
-18
lines changed

CodeHawk/CHB/bchcil/bCHCilToCBasic.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
------------------------------------------------------------------------------
55
The MIT License (MIT)
66
7-
Copyright (c) 2021-2023 Aarno Labs LLC
7+
Copyright (c) 2021-2024 Aarno Labs LLC
88
99
Permission is hereby granted, free of charge, to any person obtaining a copy
1010
of this software and associated documentation files (the "Software"), to deal
@@ -145,7 +145,8 @@ and cil_attrparam_to_b_attrparam (a: GoblintCil.attrparam): b_attrparam_t =
145145
| GoblintCil.ADot (p, s) -> ADot (cp p, s)
146146
| GoblintCil.AStar p -> AStar (cp p)
147147
| GoblintCil.AAddrOf p -> AAddrOf (cp p)
148-
| GoblintCil.AIndex (p1, p2) -> AIndex (cp p1, cp p2)
148+
| GoblintCil.AAssign (p1, p2) -> AIndex (cp p1, cp p2)
149+
| GoblintCil.AIndex (p1, p2) -> AAssign (cp p1, cp p2)
149150
| GoblintCil.AQuestion (p1, p2, p3) -> AQuestion (cp p1, cp p2, cp p3)
150151

151152

CodeHawk/CHB/bchcil/dune

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@
33
(libraries bchlib chlib chutil goblint-cil)
44
(public_name codehawk.bchcil)
55
(wrapped false))
6-
7-
(env
8-
(dev
9-
(flags (:standard -warn-error -A))))

CodeHawk/CHB/bchlib/bCHBCDictionary.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ object (self)
142142
| ADot (a,s) -> (tags @ [s], [self#index_attrparam a])
143143
| AStar a -> (tags, [self#index_attrparam a])
144144
| AAddrOf a -> (tags, [self#index_attrparam a])
145+
| AAssign (a1, a2) ->
146+
(tags, [self#index_attrparam a1; self#index_attrparam a2])
145147
| AIndex (a1,a2) ->
146-
(tags, [self#index_attrparam a1; self#index_attrparam a2 ])
148+
(tags, [self#index_attrparam a1; self#index_attrparam a2])
147149
| AQuestion (a1, a2, a3) ->
148150
(tags,
149151
[self#index_attrparam a1;
@@ -175,6 +177,7 @@ object (self)
175177
| "adot" -> ADot (self#get_attrparam (a 0), (t 1))
176178
| "astar" -> AStar (self#get_attrparam (a 0))
177179
| "aaddrof" -> AAddrOf (self#get_attrparam (a 0))
180+
| "aassign" -> AAssign (self#get_attrparam (a 0), self#get_attrparam (a 1))
178181
| "aindex" -> AIndex (self#get_attrparam (a 0), self#get_attrparam (a 1))
179182
| "aquestion" ->
180183
AQuestion

CodeHawk/CHB/bchlib/bCHBCSumTypeSerializer.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ object
271271
| ADot _ -> "adot"
272272
| AStar _ -> "astar"
273273
| AAddrOf _ -> "aaddrof"
274+
| AAssign _ -> "aassign"
274275
| AIndex _ -> "aindex"
275276
| AQuestion _ -> "aquestion"
276277

CodeHawk/CHB/bchlib/bCHBCTypes.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ and b_attrparam_t =
224224
| ADot of b_attrparam_t * string
225225
| AStar of b_attrparam_t
226226
| AAddrOf of b_attrparam_t
227+
| AAssign of b_attrparam_t * b_attrparam_t
227228
| AIndex of b_attrparam_t * b_attrparam_t
228229
| AQuestion of b_attrparam_t * b_attrparam_t * b_attrparam_t
229230

CodeHawk/CHB/bchlibpe/dune

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@
33
(libraries bchlib chlib chutil extlib str)
44
(public_name codehawk.bchlibpe)
55
(wrapped false))
6-
7-
(env
8-
(dev
9-
(flags (:standard -warn-error -A))))

CodeHawk/CHB/bchlibx86/bCHPredefinedProlog4Semantics.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ open Xprt
4040
(* bchlib *)
4141
open BCHBasicTypes
4242
open BCHBCTypeUtil
43-
open BCHFtsParameter
4443
open BCHFunctionInterface
4544
open BCHLibTypes
4645
open BCHMakeCallTargetInfo

CodeHawk/CHB/bchlibx86/bCHPullData.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ open XprToPretty
4242
(* bchlib *)
4343
open BCHBCTypes
4444
open BCHBCTypePretty
45-
open BCHCallTarget
4645
open BCHDemangler
4746
open BCHDoubleword
4847
open BCHFloc

CodeHawk/CHB/bchlibx86/bCHTranslateToCHIF.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ let translate_instruction
557557
@ cmds5
558558
@ cmds6)
559559

560-
| IndirectCall op ->
560+
| IndirectCall _ ->
561561
let string_retriever = FFU.get_string_reference in
562562
default ((get_floc loc)#get_call_commands string_retriever)
563563

CodeHawk/CHB/bchlibx86/dune

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@
33
(libraries bchlib bchlibpe bchlibelf chlib chutil extlib xprlib zarith)
44
(public_name codehawk.bchlibx86)
55
(wrapped false))
6-
7-
(env
8-
(dev
9-
(flags (:standard -warn-error -A))))

0 commit comments

Comments
 (0)