<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8458">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">utils: In Solaris, avoid a warning about an unused variable.<br><br>When HAVE_GETHOSTBYNAME_R_5 was set by the script ./configure, GCC 7.3.0 found<br>an unused variable. Actually, the variable was used (set to a dummy value) but<br>the compiler optimization might have removed that. Instead, this change ensures<br>that the variable 'res' is only used when it is really required.<br><br>Change-Id: Ic3ea23ccf84ac4bc2d501b514985b989030abab5<br>---<br>M main/utils.c<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/utils.c b/main/utils.c<br>index 4909613..c7795cf 100644<br>--- a/main/utils.c<br>+++ b/main/utils.c<br>@@ -189,7 +189,9 @@<br> */<br> struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)<br> {<br>+#ifndef HAVE_GETHOSTBYNAME_R_5<br>    int res;<br>+#endif<br>     int herrno;<br>   int dots = 0;<br>         const char *s;<br>@@ -199,7 +201,6 @@<br>      integers, we break with tradition and refuse to look up a<br>     pure integer */<br>    s = host;<br>-    res = 0;<br>      while (s && *s) {<br>             if (*s == '.')<br>                        dots++;<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8458">change 8458</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8458"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ic3ea23ccf84ac4bc2d501b514985b989030abab5 </div>
<div style="display:none"> Gerrit-Change-Number: 8458 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>