mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-20 22:19:35 +02:00
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:
parent
fb1104d278
commit
66ac355c52
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue