l3cfg: wrap _clat_prefix_is_better() in HAVE_CLAT guard

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: a03a245819 ('l3cfg: fix selection of the CLAT IPv6 prefix')
This commit is contained in:
Jan Vaclav 2026-03-31 11:38:56 +02:00
parent fb1104d278
commit 66ac355c52

View file

@ -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,