]> 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:01:53 +0000 (12:01 +0200)
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 6ecd2b82e52ff01febc2eda36fa4ed2fb4165d35..a51953f75ca8e945c7ea82424924761066c35605 100644 (file)
@@ -2485,7 +2485,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;