Properly tell the compiler that we want to ignore the return value of

certain macros.
This commit is contained in:
Rui Paulo 2010-10-13 17:09:53 +00:00
parent f3e830e9b0
commit 8e5fffdfb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213789
4 changed files with 15 additions and 15 deletions

View File

@ -145,7 +145,7 @@ uni_decode_body_internal(enum uni_msgtype mtype, struct uni_msg *msg,
msg->b_rptr = msg->b_wptr;
else
msg->b_rptr += ielen;
UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_UNK);
(void)UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_UNK);
err = -1;
continue;
}
@ -200,16 +200,16 @@ uni_decode_body_internal(enum uni_msgtype mtype, struct uni_msg *msg,
* Unexpected but recognized.
* Q.2931 5.6.8.3
*/
UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_UNK);
(void)UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_UNK);
err = -1;
break;
case DEC_ERR: /* bad IE */
if (iedecl->flags & UNIFL_ACCESS)
/* this may be wrong: 5.6.8.2 */
UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_ACC);
(void)UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_ACC);
else
UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_BAD);
(void)UNI_SAVE_IERR(cx, ietype, hdr.act, UNI_IERR_BAD);
err = -1;
break;

View File

@ -214,7 +214,7 @@ uni_encode_msg_hdr(struct uni_msg *msg, struct uni_msghdr *h,
{
u_char byte;
uni_msg_ensure(msg, 9);
(void)uni_msg_ensure(msg, 9);
APP_BYTE(msg, cx->pnni ? PNNI_PROTO : UNI_PROTO);
APP_BYTE(msg, 3);
@ -652,7 +652,7 @@ uni_encode_ie_hdr(struct uni_msg *msg, enum uni_ietype type,
{
u_char byte;
uni_msg_ensure(msg, 4 + len);
(void)uni_msg_ensure(msg, 4 + len);
*msg->b_wptr++ = type;
byte = 0x80 | (h->coding << 5);

View File

@ -398,7 +398,7 @@ un0_setup(struct call *c, struct uni_msg *m, struct uni_all *u,
if (IE_ISGOOD(u->u.setup.epref) &&
u->u.setup.epref.flag == 1) {
IE_SETERROR(u->u.setup.epref);
UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
(void)UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
u->u.setup.epref.h.act, UNI_IERR_BAD);
}
uni_mandate_epref(c->uni, &u->u.setup.epref);
@ -578,7 +578,7 @@ u1n6_call_proc(struct call *c, struct uni_msg *m, struct uni_all *u,
(cp->epref.flag != 1 ||
cp->epref.epref != c->msg_setup.epref.epref)) {
IE_SETERROR(cp->epref);
UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
(void)UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
cp->epref.h.act, UNI_IERR_BAD);
}
}
@ -763,7 +763,7 @@ unx_alerting(struct call *c, struct uni_msg *m, struct uni_all *u,
(al->epref.flag != 1 ||
al->epref.epref != c->msg_setup.epref.epref)) {
IE_SETERROR(al->epref);
UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
(void)UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
al->epref.h.act, UNI_IERR_BAD);
}
}
@ -1065,7 +1065,7 @@ unx_connect(struct call *c, struct uni_msg *m, struct uni_all *u,
if (IE_ISGOOD(co->epref) &&
co->epref.flag != 1) {
IE_SETERROR(co->epref);
UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
(void)UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
co->epref.h.act, UNI_IERR_BAD);
}
}
@ -2757,7 +2757,7 @@ unx_add_party(struct call *c, struct uni_msg *m, struct uni_all *u,
if (IE_ISGOOD(u->u.add_party.epref) && p == NULL &&
u->u.add_party.epref.flag) {
IE_SETERROR(u->u.add_party.epref);
UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
(void)UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
u->u.add_party.epref.h.act, UNI_IERR_BAD);
}
@ -2802,7 +2802,7 @@ un10n8_add_party_ack(struct call *c, struct uni_msg *m, struct uni_all *u,
if (IE_ISGOOD(u->u.add_party_ack.epref)) {
if (u->u.add_party_ack.epref.flag == 0) {
IE_SETERROR(u->u.add_party_ack.epref);
UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
(void)UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
u->u.add_party_ack.epref.h.act, UNI_IERR_BAD);
} else {
p = uni_find_partyx(c, u->u.add_party_ack.epref.epref, 1);
@ -2902,7 +2902,7 @@ unx_party_alerting(struct call *c, struct uni_msg *m, struct uni_all *u,
if (IE_ISGOOD(u->u.party_alerting.epref)) {
if (u->u.party_alerting.epref.flag == 0) {
IE_SETERROR(u->u.party_alerting.epref);
UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
(void)UNI_SAVE_IERR(&c->uni->cx, UNI_IE_EPREF,
u->u.party_alerting.epref.h.act, UNI_IERR_BAD);
} else {
p = uni_find_partyx(c, u->u.party_alerting.epref.epref, 1);

View File

@ -270,7 +270,7 @@ start_restart_ack(struct uni *uni, struct uni_msg *m, struct uni_all *u)
*/
if (u->u.restart_ack.restart.rclass == UNI_RESTART_ALL &&
IE_ISGOOD(u->u.restart_ack.connid)) {
UNI_SAVE_IERR(&uni->cx, UNI_IE_CONNID,
(void)UNI_SAVE_IERR(&uni->cx, UNI_IE_CONNID,
u->u.restart_ack.connid.h.act,
UNI_IERR_UNK);
} else if ((u->u.restart_ack.restart.rclass == UNI_RESTART_PATH ||
@ -547,7 +547,7 @@ response_restart(struct uni *uni, struct uni_msg *m, struct uni_all *u)
*/
if (u->u.restart.restart.rclass == UNI_RESTART_ALL &&
IE_ISGOOD(u->u.restart.connid)) {
UNI_SAVE_IERR(&uni->cx, UNI_IE_CONNID,
(void)UNI_SAVE_IERR(&uni->cx, UNI_IE_CONNID,
u->u.restart.connid.h.act,
UNI_IERR_UNK);
} else if ((u->u.restart.restart.rclass == UNI_RESTART_PATH ||