]> git.proxmox.com Git - pve-cluster.git/commitdiff
Wpedantic: mark flexible arrays with [] not [0]
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 7 Sep 2018 11:50:46 +0000 (13:50 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Sep 2018 12:00:51 +0000 (14:00 +0200)
https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Zero-Length.html
(same as in GCC 4.7.4 docs)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/src/memdb.h

index 89d8d323a11e52ebaa0c1559c194f2aa96fa3b22..60df035710551c270e20c44852e91ed9f4a14a7a 100644 (file)
@@ -48,7 +48,7 @@ struct memdb_tree_entry {
                GHashTable *entries;
                gpointer value;
        } data;
-       char name[0];
+       char name[];
 };
 
 typedef struct {
@@ -63,7 +63,7 @@ typedef struct {
        guint32 mtime;
        guint32 size;  /* number of entries */
        guint32 bytes; /* total bytes allocated */
-       memdb_index_extry_t entries[0];
+       memdb_index_extry_t entries[];
 } memdb_index_t;
 
 typedef struct db_backend db_backend_t;