The variable 'endpoint_caps' in function 'set_caps' is not used, so remove.
ASTERISK-28458
Change-Id: Ia8766d05a0738aecb29dd018302c2dafca5cab34
RAII_VAR(struct ast_format_cap *, caps, NULL, ao2_cleanup);
RAII_VAR(struct ast_format_cap *, peer, NULL, ao2_cleanup);
RAII_VAR(struct ast_format_cap *, joint, NULL, ao2_cleanup);
- RAII_VAR(struct ast_format_cap *, endpoint_caps, NULL, ao2_cleanup);
enum ast_media_type media_type = session_media->type;
struct ast_rtp_codecs codecs = AST_RTP_CODECS_NULL_INIT;
int fmts = 0;