mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 05:18:23 +02:00
shared: fix static array declaration for _by_name in "nm-ethtool-utils.c"
[1/73] Compiling C object 'libnm-core/2b1af02@@nm-core@sta/.._shared_nm-ethtool-utils.c.o'.
../shared/nm-ethtool-utils.c:93:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
const guint8 const _by_name[_NM_ETHTOOL_ID_NUM] = {
^~~~~
This commit is contained in:
parent
7b18bd1fa8
commit
9c3a59341f
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ const NMEthtoolData *const nm_ethtool_data[_NM_ETHTOOL_ID_NUM + 1] = {
|
|||
[_NM_ETHTOOL_ID_NUM] = NULL,
|
||||
};
|
||||
|
||||
const guint8 const _by_name[_NM_ETHTOOL_ID_NUM] = {
|
||||
static const guint8 _by_name[_NM_ETHTOOL_ID_NUM] = {
|
||||
/* sorted by optname. */
|
||||
NM_ETHTOOL_ID_FEATURE_ESP_HW_OFFLOAD,
|
||||
NM_ETHTOOL_ID_FEATURE_ESP_TX_CSUM_HW_OFFLOAD,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue