pet_patch_union_map: make warning optional
commit43de59d1f060f83895f507358369650c9344ff79
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 13 Aug 2015 16:31:26 +0000 (13 18:31 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 2 Nov 2015 14:06:03 +0000 (2 15:06 +0100)
tree741b3ec9d98363a2ca0129db04a76c4d41bb598a
parente42570d9db4cb31e74a8b43a137a94ad5a99a42d
pet_patch_union_map: make warning optional

pet_patch_union_map is currently only called on a pre-evaluated access relation.
If an initial index in this access relation needs to be zero, then it makes
sense to warn about cases where this initial index is not obviously zero.
In subsequent commits, pet_patch_union_map will also get called during
the transformation of unevaluated pet_trees.  In such cases, it may not
be clear yet that an initial index will definitely be zero and no warning
should be printed.  Make the printing of a warning optional such that
the caller can decide whether or not to print a warning.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
context.c
patch.c
patch.h