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:
@@ -21,10 +21,10 @@
|
|||||||
|
|
||||||
#include <NetworkManager.h>
|
#include <NetworkManager.h>
|
||||||
|
|
||||||
struct {
|
typedef struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
const char *ui_name;
|
const char *ui_name;
|
||||||
} typedef VpnPasswordName;
|
} VpnPasswordName;
|
||||||
|
|
||||||
GSList *nm_vpn_get_plugin_infos (void);
|
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))
|
#define BIT(x) (1 << (x))
|
||||||
|
|
||||||
const static struct {
|
static const struct {
|
||||||
const char *option;
|
const char *option;
|
||||||
NMBondMode unsupp_modes;
|
NMBondMode unsupp_modes;
|
||||||
} bond_unsupp_modes[] = {
|
} bond_unsupp_modes[] = {
|
||||||
|
Reference in New Issue
Block a user