Refactor: Anim, add ATTR_WARN_UNUSED_RESULT to some functions
Add `ATTR_WARN_UNUSED_RESULT` to the `BKE_animsys_eval_context_construct` and `BKE_animsys_eval_context_construct_at` functions. They are pure functions, and without using their returned value they are pointless. No functional changes.
This commit is contained in:
@@ -48,9 +48,9 @@ typedef struct AnimationEvalContext {
|
||||
} AnimationEvalContext;
|
||||
|
||||
AnimationEvalContext BKE_animsys_eval_context_construct(struct Depsgraph *depsgraph,
|
||||
float eval_time);
|
||||
float eval_time) ATTR_WARN_UNUSED_RESULT;
|
||||
AnimationEvalContext BKE_animsys_eval_context_construct_at(
|
||||
const AnimationEvalContext *anim_eval_context, float eval_time);
|
||||
const AnimationEvalContext *anim_eval_context, float eval_time) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
/* ************************************* */
|
||||
/* KeyingSets API */
|
||||
|
||||
Reference in New Issue
Block a user