level-zero
level-zero copied to clipboard
extern-c-compat warning due to empty structure
include/layers/zel_tracing_register_cb.h:2515:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wextern-c-compat] 2515 | typedef struct _zer_get_default_context_params_t | ^
This turns into an error when building with clang
│B│ /mason/build/x86_64/v1.26.3.tar.gz/include/layers/zel_tracing_register_cb.h:2515:9: error: empty struct has size 0 in C, size 1 in C++ [-Werror,-Wextern-c-compat]
│B│ 2515 | typedef struct _zer_get_default_context_params_t
│B│ | ^
│B│ 1 error generated.
This should be fixed in the associated commit. We can't technically fix the code, as it's baked into the public facing API and would change the structure size, but we've addressed the warning with #pragmas ... Please check and verify and close.
Verified. Currently using your commit when building 1.28.2. Can close this