Commit 6f76aab4 authored by Vinson Lee's avatar Vinson Lee
Browse files

util/fossilize_db: Fix gnu-empty-initializer error.

../src/util/fossilize_db.c:178:58: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
         char hash_str[FOSSILIZE_BLOB_HASH_LENGTH + 1] = {};
                                                         ^

Fixes: eca6bb95

 ("util/fossilize_db: add basic fossilize db util to read/write shader caches")
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
parent 644fcd94
Pipeline #273948 waiting for manual action with stages
in 9 seconds
......@@ -175,7 +175,7 @@ load_foz_dbs(struct foz_db *foz_db, FILE *db_idx, uint8_t file_idx,
header->payload_size != sizeof(uint64_t))
break;
char hash_str[FOSSILIZE_BLOB_HASH_LENGTH + 1] = {};
char hash_str[FOSSILIZE_BLOB_HASH_LENGTH + 1] = {0};
memcpy(hash_str, bytes_to_read, FOSSILIZE_BLOB_HASH_LENGTH);
struct foz_db_entry *entry = ralloc(foz_db->mem_ctx,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment