summaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/copy.c b/copy.c
index ea5a9d4..96cb8fa 100644
--- a/copy.c
+++ b/copy.c
@@ -138,7 +138,9 @@ static void copy_type(Copier *c, Type *out, Type *in) {
*outfn = *infn;
size_t constness_bytes = (ntypes-1) * sizeof *outfn->constness;
outfn->constness = allocr_malloc(c->allocr, constness_bytes);
+ gcc_no_bounds_warnings_start
memmove(outfn->constness, infn->constness, constness_bytes);
+ gcc_no_bounds_warnings_end
outfn->types = NULL;
arr_set_lena(outfn->types, ntypes, c->allocr);