mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 04:10:14 +01:00
connectivity: fix compiler warning when building without concheck
Fix the following:
../src/core/nm-connectivity.c:958:1: warning: ‘check_platform_config’ defined but not used [-Wunused-function]
958 | check_platform_config(NMConnectivity *self,
| ^~~~~~~~~~~~~~~~~~~~~
Fixes: 91d447df19 ('device: don't start connectivity check on unconfigured devices')
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2224
(cherry picked from commit 1253cbad5a)
This commit is contained in:
parent
1c1f31fdd4
commit
c1d94d7081
1 changed files with 3 additions and 3 deletions
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
#define HEADER_STATUS_ONLINE "X-NetworkManager-Status: online\r\n"
|
||||
|
||||
#define SD_RESOLVED_DNS ((guint64) (1LL << 0))
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static NM_UTILS_LOOKUP_STR_DEFINE(_state_to_string,
|
||||
|
|
@ -950,9 +952,6 @@ systemd_resolved_resolve_cb(GObject *object, GAsyncResult *res, gpointer user_da
|
|||
|
||||
do_curl_request(cb_data, nm_str_buf_get_str(&strbuf_hosts));
|
||||
}
|
||||
#endif
|
||||
|
||||
#define SD_RESOLVED_DNS ((guint64) (1LL << 0))
|
||||
|
||||
static NMConnectivityState
|
||||
check_platform_config(NMConnectivity *self,
|
||||
|
|
@ -1013,6 +1012,7 @@ check_platform_config(NMConnectivity *self,
|
|||
NM_SET_OUT(reason, NULL);
|
||||
return NM_CONNECTIVITY_UNKNOWN;
|
||||
}
|
||||
#endif
|
||||
|
||||
NMConnectivityCheckHandle *
|
||||
nm_connectivity_check_start(NMConnectivity *self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue