Author: dim
Date: Tue Jan 27 18:56:46 2015
New Revision: 277801
URL: https://svnweb.freebsd.org/changeset/base/277801
Log:
Constify a struct savexmm pointer in pt_ucontext_to_fpreg(), to silence
a -Wcast-qual warning from clang 3.6.0.
Modified:
head/lib/libthread_db/arch/i386/libpthread_md.c
Modified: head/lib/libthread_db/arch/i386/libpthread_md.c
==============================================================================
--- head/lib/libthread_db/arch/i386/libpthread_md.c Tue Jan 27 18:56:22
2015 (r277800)
+++ head/lib/libthread_db/arch/i386/libpthread_md.c Tue Jan 27 18:56:46
2015 (r277801)
@@ -72,7 +72,7 @@ pt_ucontext_to_fpreg(const ucontext_t *u
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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"