mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
util/fossilize_db: Fix compile error with clang
../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: eca6bb9540 ("util/fossilize_db: add basic fossilize db util to read/write shader caches")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9180>
This commit is contained in:
parent
226c7ae2a8
commit
2ff397c00e
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue