util/fossilize_db: Fix compile error with clang
authorRob Clark <robdclark@chromium.org>
Sun, 21 Feb 2021 22:20:47 +0000 (14:20 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 00:06:35 +0000 (00:06 +0000)
commit2ff397c00e15504da9835d4f219c83dfe7919a2c
treec5a7a9d4138cc3f7c1a55ef8d0ad1f87a151674b
parent226c7ae2a86dfeb0f29ea736b77b4427c02f0482
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: eca6bb9540d ("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>
src/util/fossilize_db.c