From 23364a5862fdc515f7c482214f0a20ae9b7d3285 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 25 Apr 2015 16:56:25 +0000 Subject: [PATCH] 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 Fixes: 5e4bd5c73f24a36654038cef8cfe242bf49e0b83 ("vm_vec_delta_ang: check for vm_vec_copy_normalize failure") --- common/include/vecmat.h | 1 - 1 file changed, 1 deletion(-) diff --git a/common/include/vecmat.h b/common/include/vecmat.h index 80e699d68..2c9fd8ae5 100644 --- a/common/include/vecmat.h +++ b/common/include/vecmat.h @@ -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)