diff options
author | dim <dim@FreeBSD.org> | 2011-12-15 22:10:27 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-15 22:10:27 +0000 |
commit | 4d784918edbf9aefbab5ab12e4701d3104c3ff45 (patch) | |
tree | c9a404d2faa8209e808686e3452c5d701ab36ef2 /cddl | |
parent | 634fe42a7686851f7c0235f4c2220cb4a89841ec (diff) | |
download | FreeBSD-src-4d784918edbf9aefbab5ab12e4701d3104c3ff45.zip FreeBSD-src-4d784918edbf9aefbab5ab12e4701d3104c3ff45.tar.gz |
Cast away a clang alignment warning in drti.c's fixsymbol() function.
This code only runs on i386 and amd64, so there should be no problems if
buf + sec->dofs_offset is not aligned (which is unlikely anyway).
MFC after: 1 week
Diffstat (limited to 'cddl')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/drti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c b/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c index 7a14dd3..3b4a38c 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c @@ -102,7 +102,7 @@ fixsymbol(Elf *e, Elf_Data *data, size_t idx, int nprobes, char *buf, int ndx; while (gelf_getsym(data, j++, &sym) != NULL) { - prb = (dof_probe_t *)(buf + sec->dofs_offset); + prb = (dof_probe_t *)(void *)(buf + sec->dofs_offset); for (ndx = nprobes; ndx; ndx--, prb += 1) { funcname = dofstrtab + prb->dofpr_func; |