[Asterisk-code-review] utils: Avoid an unused variable in Solaris 11. (asterisk[13])

Joshua Colp asteriskteam at digium.com
Fri Jun 22 07:21:56 CDT 2018


Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/9247 )

Change subject: utils: Avoid an unused variable in Solaris 11.
......................................................................

utils: Avoid an unused variable in Solaris 11.

With ./configure --enable-dev-mode[=noisy], the build fails because every
warning gets an error. Therefore, Asterisk has to be free of warnings and this
variable must go.

Change-Id: I63dd2bc4833b9bdb04602f83422d16caf289d46a
---
M main/utils.c
1 file changed, 0 insertions(+), 1 deletion(-)

Approvals:
  George Joseph: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit



diff --git a/main/utils.c b/main/utils.c
index 2e612c1..ef4d1ad 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -2568,7 +2568,6 @@
 {
 	int s;
 	int x;
-	int res = 0;
 	struct lifreq *ifr = NULL;
 	struct lifnum ifn;
 	struct lifconf ifc;

-- 
To view, visit https://gerrit.asterisk.org/9247
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I63dd2bc4833b9bdb04602f83422d16caf289d46a
Gerrit-Change-Number: 9247
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180622/58d71979/attachment.html>


More information about the asterisk-code-review mailing list