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:
Sybren A. Stüvel
2024-01-16 10:48:44 +01:00
parent 24565cc905
commit 211f6ddd29

View File

@@ -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 */