mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-22 02:35:25 +00:00
build: fix -Wold-style-declaration warnings
libnm-core/nm-setting-bond.c:502:1: error: ‘static’ is not at beginning of declaration [-Werror=old-style-declaration] const static struct { ^~~~~ In file included from clients/cli/common.c:32:0: ./clients/common/nm-vpn-helpers.h:27:1: error: ‘typedef’ is not at beginning of declaration [-Werror=old-style-declaration] } typedef VpnPasswordName; ^
This commit is contained in:
parent
e68cc17f43
commit
cb365b33f3
|
@ -21,10 +21,10 @@
|
|||
|
||||
#include <NetworkManager.h>
|
||||
|
||||
struct {
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const char *ui_name;
|
||||
} typedef VpnPasswordName;
|
||||
} VpnPasswordName;
|
||||
|
||||
GSList *nm_vpn_get_plugin_infos (void);
|
||||
|
||||
|
|
|
@ -499,7 +499,7 @@ _nm_setting_bond_mode_from_string (const char *str)
|
|||
|
||||
#define BIT(x) (1 << (x))
|
||||
|
||||
const static struct {
|
||||
static const struct {
|
||||
const char *option;
|
||||
NMBondMode unsupp_modes;
|
||||
} bond_unsupp_modes[] = {
|
||||
|
|
Loading…
Reference in a new issue