Module: kamailio
Branch: master
Commit: 5395bbe6522ab9b9874162874935119cff8aa764
URL: https://github.com/kamailio/kamailio/commit/5395bbe6522ab9b9874162874935119…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2016-05-25T13:49:39+03:00
modules/ims_dialog: fix clang warning -Wparentheses-equality
---
Modified: modules/ims_dialog/dlg_hash.c
---
Diff: https://github.com/kamailio/kamailio/commit/5395bbe6522ab9b9874162874935119…
Patch: https://github.com/kamailio/kamailio/commit/5395bbe6522ab9b9874162874935119…
---
diff --git a/modules/ims_dialog/dlg_hash.c b/modules/ims_dialog/dlg_hash.c
index 26817ac..cc6db50 100644
--- a/modules/ims_dialog/dlg_hash.c
+++ b/modules/ims_dialog/dlg_hash.c
@@ -671,7 +671,7 @@ void dlg_remove_dlg_out(struct dlg_cell_out *dlg_out_do_not_remove, struct dlg_c
LM_DBG("This is the dlg_out not to be removed!\n");
} else {
//check if this the last entry in the entry_table
- if ((d_entry_out->first == d_entry_out->last)) {
+ if (d_entry_out->first == d_entry_out->last) {
//we shouldnt ever get here
LM_DBG("This is the last dlg_out_entry in the dlg_entries_out\n");
//this is the last then set entry_out-> first and entry_out->last to zero
```
CC (clang38) [M ims_dialog.so] dlg_hash.o
dlg_hash.c:674:37: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if ((d_entry_out->first == d_entry_out->last)) {
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
dlg_hash.c:674:37: note: remove extraneous parentheses around the comparison to silence this warning
if ((d_entry_out->first == d_entry_out->last)) {
~ ^ ~
dlg_hash.c:674:37: note: use '=' to turn this equality comparison into an assignment
if ((d_entry_out->first == d_entry_out->last)) {
^~
=
CC (clang38) [M ims_qos.so] rx_avp.o
rx_avp.c:492:16: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
if (bandwidth >= 0) {
~~~~~~~~~ ^ ~
rx_avp.c:504:16: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
if (bandwidth >= 0) {
~~~~~~~~~ ^ ~
CC (clang38) [M ims_registrar_scscf.so] save.o
save.c:114:21: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
if (expires_hdr >= 0)
~~~~~~~~~~~ ^ ~
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/637
-- Commit Summary --
* modules/ims_auth lib/ims: use header type instead of header flag
* modules/ims_qos modules/ims_registrar_scscf: fix comparison of unsigned expression
* modules/ims_dialog: fix clang warning -Wparentheses-equality
-- File Changes --
M lib/ims/ims_getters.c (6)
M modules/ims_auth/utils.c (4)
M modules/ims_dialog/dlg_hash.c (2)
M modules/ims_qos/rx_avp.c (4)
M modules/ims_registrar_scscf/save.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/637.patchhttps://github.com/kamailio/kamailio/pull/637.diff
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/637