net: mdns: Fix compile error when using clang

No issues with gcc but clang gives this error for
the *v4 variable few lines below.

.../lib/dns/mdns_responder.c:712:2: error: expected expression
        struct net_context *v4;

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
Jukka Rissanen 2023-11-16 21:40:56 +02:00 committed by Carles Cufí
parent 9246d98a6a
commit 5209666539

View File

@ -706,6 +706,9 @@ static int init_listener(void)
}
}
ipv6_out:
; /* Added ";" to avoid clang compile error because of
* the "struct net_context *v4" after it.
*/
#endif /* CONFIG_NET_IPV6 */
#if defined(CONFIG_NET_IPV4)