Remove warn_unused_result from vm_vec_normalize

Some callers want the side effect of normalizing the argument and do not
need the magnitude.  Per report from btb, the warning broke the OS X
build.

Reported-by: btb <5e4bd5c73f (commitcomment-10899878)>
Fixes: 5e4bd5c73f ("vm_vec_delta_ang: check for vm_vec_copy_normalize failure")
This commit is contained in:
Kp 2015-04-25 16:56:25 +00:00
parent 1b08ed9aff
commit 23364a5862

View file

@ -352,7 +352,6 @@ vm_distance vm_vec_dist_quick(const vms_vector &v0, const vms_vector &v1);
__attribute_warn_unused_result
vm_magnitude vm_vec_copy_normalize(vms_vector &dest, const vms_vector &src);
__attribute_warn_unused_result
vm_magnitude vm_vec_normalize(vms_vector &v);
static inline vms_vector vm_vec_normalized(vms_vector v) __attribute_warn_unused_result;
static inline vms_vector vm_vec_normalized(vms_vector v)