diff options
Diffstat (limited to 'intern/cycles/kernel/types.h')
-rw-r--r-- | intern/cycles/kernel/types.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/intern/cycles/kernel/types.h b/intern/cycles/kernel/types.h index e430b76cf49..6eaf99eab01 100644 --- a/intern/cycles/kernel/types.h +++ b/intern/cycles/kernel/types.h @@ -1136,7 +1136,13 @@ typedef enum KernelBVHLayout { } \ ; \ static_assert_align(name, 16); -#define KERNEL_STRUCT_MEMBER(parent, type, name) type name; + +#ifdef __KERNEL_USE_DATA_CONSTANTS__ +# define KERNEL_STRUCT_MEMBER(parent, type, name) type __unused_##name; +#else +# define KERNEL_STRUCT_MEMBER(parent, type, name) type name; +#endif + #include "kernel/data_template.h" typedef struct KernelTables { |