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:
Thomas Haller 2017-02-06 18:43:24 +01:00
parent e68cc17f43
commit cb365b33f3
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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[] = {