mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 11:10:31 +01:00
vpn: fix warning in vpn-manager about implicit conversion of enum types
This bug has no real consequense, because the numerical values of the
enum values are identical.
clang warns:
make[4]: Entering directory `./NetworkManager/src'
CC nm-vpn-connection.lo
vpn-manager/nm-vpn-connection.c:179:10: error: implicit conversion from enumeration type 'VpnState' to different enumeration type 'NMVPNConnectionState' (aka 'enum NMVPNConnectionState') [-Werror,-Wenum-conversion]
return STATE_UNKNOWN;
~~~~~~ ^~~~~~~~~~~~~
Signed-off-by: Thomas Haller <thaller@redhat.com>
(cherry picked from commit 45c5365d85)
This commit is contained in:
parent
87b6917dc7
commit
c10d431564
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ _state_to_nm_vpn_state (VpnState state)
|
|||
case STATE_FAILED:
|
||||
return NM_VPN_CONNECTION_STATE_FAILED;
|
||||
default:
|
||||
return STATE_UNKNOWN;
|
||||
return NM_VPN_CONNECTION_STATE_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue