mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nir: Fix nir.h MSVC compilation for C++ source files
This kind of C initializer is not accepted by MSVC in C++ mode.
Fixed: 75292ae7 ("nir: Fix gnu-empty-initializer warning ")
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37604>
This commit is contained in:
parent
094804131e
commit
8949473023
1 changed files with 2 additions and 1 deletions
|
|
@ -4779,7 +4779,8 @@ nir_metadata_require_most(nir_shader *shader)
|
|||
static inline struct blob
|
||||
nir_validate_progress_setup(nir_shader *shader)
|
||||
{
|
||||
return (struct blob){0};
|
||||
struct blob b = {0};
|
||||
return b;
|
||||
}
|
||||
static inline void
|
||||
nir_validate_progress_finish(nir_shader *shader, struct blob *setup_blob, bool progress, const char *when)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue