]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
utils: Avoid an unused variable in Solaris 11.
authorAlexander Traud <pabstraud@compuserve.com>
Thu, 21 Jun 2018 10:01:53 +0000 (12:01 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Thu, 21 Jun 2018 10:16:23 +0000 (04:16 -0600)
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

main/utils.c

index 2e612c111f143c43e381db68ee4fe93ddfe42fc0..ef4d1adbc942ac9554689740e68c7714a72b63fe 100644 (file)
@@ -2568,7 +2568,6 @@ void ast_set_default_eid(struct ast_eid *eid)
 {
        int s;
        int x;
-       int res = 0;
        struct lifreq *ifr = NULL;
        struct lifnum ifn;
        struct lifconf ifc;