diff options
author | Mai Lavelle <mai.lavelle@gmail.com> | 2017-03-07 13:16:57 +0300 |
---|---|---|
committer | Mai Lavelle <mai.lavelle@gmail.com> | 2017-03-08 09:31:32 +0300 |
commit | fe7cc94dfaa466b25aa800abc6a03c715e97cef4 (patch) | |
tree | ae9a8782dbc6e183ff20bfa098f83cc7b14d7d60 /intern/cycles/kernel | |
parent | 306034790fb75ca2c182d55132287cc0ed4b9c2f (diff) |
Cycles: Fix strict warning about unused variable
Diffstat (limited to 'intern/cycles/kernel')
-rw-r--r-- | intern/cycles/kernel/split/kernel_split_data.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/kernel/split/kernel_split_data.h b/intern/cycles/kernel/split/kernel_split_data.h index 0a2ba8d1e1a..9c2793f6941 100644 --- a/intern/cycles/kernel/split/kernel_split_data.h +++ b/intern/cycles/kernel/split/kernel_split_data.h @@ -97,6 +97,8 @@ typedef struct SplitData { /* TODO: find a way to get access to kg here */ ccl_device_inline size_t split_data_buffer_size(ccl_global void *kg, size_t num_elements) { + (void)kg; /* Unused on CPU. */ + size_t size = 0; #define SPLIT_DATA_ENTRY(type, name, num) + align_up(num_elements * num * sizeof(type), 16) size = size SPLIT_DATA_ENTRIES; @@ -111,6 +113,8 @@ ccl_device_inline void split_data_init(ccl_global void *kg, ccl_global void *data, ccl_global char *ray_state) { + (void)kg; /* Unused on CPU. */ + ccl_global char *p = (ccl_global char*)data; #define SPLIT_DATA_ENTRY(type, name, num) \ |