From 66ac355c52698bc55046abdf9466bf5c89935d89 Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Tue, 31 Mar 2026 11:38:56 +0200 Subject: [PATCH] l3cfg: wrap _clat_prefix_is_better() in HAVE_CLAT guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following warning when building without CLAT: ../src/core/nm-l3cfg.c:4157:1: warning: ‘_clat_prefix_is_better’ defined but not used [-Wunused-function] 4157 | _clat_prefix_is_better(const NMPlatformIP6Address *best, | ^~~~~~~~~~~~~~~~~~~~~~ Fixes: a03a2458197f ('l3cfg: fix selection of the CLAT IPv6 prefix') --- src/core/nm-l3cfg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/nm-l3cfg.c b/src/core/nm-l3cfg.c index 72288def8c..1adb8af1dd 100644 --- a/src/core/nm-l3cfg.c +++ b/src/core/nm-l3cfg.c @@ -4140,6 +4140,7 @@ update_routes: } } +#if HAVE_CLAT /** * _clat_prefix_is_better: * @best: current best candidate (or %NULL) @@ -4186,6 +4187,7 @@ _clat_prefix_is_better(const NMPlatformIP6Address *best, return FALSE; } +#endif /* HAVE_CLAT */ static void _l3cfg_update_clat_config(NML3Cfg *self,