For some reason, after a distclean, gcc started returning

'value computed is not used'.  Fixing (for --enable-dev-mode).


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@162071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-12-09 17:07:50 +00:00
parent 97bb6d4c65
commit cbbd837a34

View File

@@ -791,7 +791,7 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame)
we have to pad it to 24 bytes still. */
if (frame->datalen == 4) {
if (p->silencesupression) {
memset(tmpbuf + 4, 0, sizeof(tmpbuf) - 4);
memset(tmpbuf, 0, sizeof(tmpbuf));
memcpy(tmpbuf, frame->data, 4);
expected = 24;
res = phone_write_buf(p, tmpbuf, expected, maxfr, 0);