]> git.ipfire.org Git - thirdparty/asterisk.git/commit
utils: In Solaris, avoid a warning about an unused variable.
authorAlexander Traud <pabstraud@compuserve.com>
Wed, 7 Mar 2018 15:32:05 +0000 (16:32 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Wed, 7 Mar 2018 15:33:46 +0000 (09:33 -0600)
commit725fd32428a7a65c9322e51a39f4f0d1041e08f3
tree221ee411583d143929f89d045576ac39b82b7b75
parent359a0cc5a2db2dc5ea320cb442a8fac2c232fe64
utils: In Solaris, avoid a warning about an unused variable.

When HAVE_GETHOSTBYNAME_R_5 was set by the script ./configure, GCC 7.3.0 found
an unused variable. Actually, the variable was used (set to a dummy value) but
the compiler optimization might have removed that. Instead, this change ensures
that the variable 'res' is only used when it is really required.

Change-Id: Ic3ea23ccf84ac4bc2d501b514985b989030abab5
main/utils.c