aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2012-10-16 17:00:53 -0700
committerBen Cheng <bccheng@google.com>2012-12-13 15:25:11 -0800
commit494ce1fc7f0cee59bf1cc0281c2e558aab15aed7 (patch)
tree6601e850bf0cf35c83af12f54e694682b2c115c1
parentd6da0b3e4c4dc9a66ff53ccc43739bf584c37efb (diff)
downloadquake-494ce1fc7f0cee59bf1cc0281c2e558aab15aed7.tar.gz
Add (void *) to make gcc 4.7 happy under strict-alias mode.
[cherry-picked from compiler-dev] Change-Id: I19091d01b12fe660486a02eecc278cc21c74cb45
-rw-r--r--quake/src/WinQuake/pr_exec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/quake/src/WinQuake/pr_exec.cpp b/quake/src/WinQuake/pr_exec.cpp
index 2af657a..39ce86c 100644
--- a/quake/src/WinQuake/pr_exec.cpp
+++ b/quake/src/WinQuake/pr_exec.cpp
@@ -577,7 +577,7 @@ while (1)
#ifdef PARANOID
NUM_FOR_EDICT(ed); // make sure it's in range
#endif
- a = (eval_t *)(ed->u.i + b->_int);
+ a = (eval_t *)((void *)(ed->u.i + b->_int));
c->_int = a->_int;
break;
@@ -586,7 +586,7 @@ while (1)
#ifdef PARANOID
NUM_FOR_EDICT(ed); // make sure it's in range
#endif
- a = (eval_t *)(ed->u.i + b->_int);
+ a = (eval_t *)((void *)(ed->u.i + b->_int));
c->vector[0] = a->vector[0];
c->vector[1] = a->vector[1];
c->vector[2] = a->vector[2];