diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-05-24 18:23:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-05-24 18:23:54 +0300 |
commit | 55c15ad9ded2707d16cb88eea2dc2a62e4ec2359 (patch) | |
tree | 9f4c1bf3392e5b69b84d5214f7f1b9b8d875222b /intern/cycles/kernel/kernel_compat_cuda.h | |
parent | 3de9db96508309646d2d715eee483ca5ff909b87 (diff) |
Cycles: Use falltrhough attribute to help catching missing break statements
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_cuda.h')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_cuda.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_compat_cuda.h b/intern/cycles/kernel/kernel_compat_cuda.h index 988126f90e1..38708f7ff0b 100644 --- a/intern/cycles/kernel/kernel_compat_cuda.h +++ b/intern/cycles/kernel/kernel_compat_cuda.h @@ -55,6 +55,8 @@ #define ccl_restrict __restrict__ #define ccl_align(n) __align__(n) +#define ATTR_FALLTHROUGH + #define CCL_MAX_LOCAL_SIZE (CUDA_THREADS_BLOCK_WIDTH*CUDA_THREADS_BLOCK_WIDTH) |