summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db/arch
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-01-27 18:56:46 +0000
committerdim <dim@FreeBSD.org>2015-01-27 18:56:46 +0000
commit6f1ff22daed390f1f07033c0d77c25dc48b5f3e1 (patch)
tree4233055d5c8f2171e46acf13bfe793932b488e2e /lib/libthread_db/arch
parent0f98db1b3f12612b0dce2b07750691abddd6e6ad (diff)
downloadFreeBSD-src-6f1ff22daed390f1f07033c0d77c25dc48b5f3e1.zip
FreeBSD-src-6f1ff22daed390f1f07033c0d77c25dc48b5f3e1.tar.gz
Constify a struct savexmm pointer in pt_ucontext_to_fpreg(), to silence
a -Wcast-qual warning from clang 3.6.0.
Diffstat (limited to 'lib/libthread_db/arch')
-rw-r--r--lib/libthread_db/arch/i386/libpthread_md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthread_db/arch/i386/libpthread_md.c b/lib/libthread_db/arch/i386/libpthread_md.c
index d41865f..784c245 100644
--- a/lib/libthread_db/arch/i386/libpthread_md.c
+++ b/lib/libthread_db/arch/i386/libpthread_md.c
@@ -72,7 +72,7 @@ pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r)
memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(struct save87));
else {
int i;
- struct savexmm *sx = (struct savexmm *)&uc->uc_mcontext.mc_fpstate;
+ const struct savexmm *sx = (const struct savexmm *)&uc->uc_mcontext.mc_fpstate;
memcpy(&r->fpr_env, &sx->sv_env, sizeof(r->fpr_env));
for (i = 0; i < 8; ++i)
memcpy(&r->fpr_acc[i], &sx->sv_fp[i].fp_acc, 10);
OpenPOWER on IntegriCloud