Cycles: Fix strict warning about unused variable
authorMai Lavelle <mai.lavelle@gmail.com>
Tue, 7 Mar 2017 10:16:57 +0000 (05:16 -0500)
committerMai Lavelle <mai.lavelle@gmail.com>
Wed, 8 Mar 2017 06:31:32 +0000 (01:31 -0500)
intern/cycles/kernel/split/kernel_split_data.h

index 0a2ba8d1e1a214c17d5cfc2a778bc150e4d70c15..9c2793f6941a2c68d466611445bd3539a4844440 100644 (file)
@@ -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) \