Blender Git Commit Log

Git Commits -> Revision 7bd8c83

Revision 7bd8c83 by Sergey Sharybin (cycles-x)
March 23, 2021, 13:17 (GMT)
Cycles: Silence unused kg arguments in CPU kernels

The kernel globals might not be used by some of the kernels.
This change makes it so such kernels do not generate a strict compiler
warning.

The motivation is to still be able to see unused arguments (which
could be left-over of refactor and are to be removed) without causing
"polluting" of the compile log with warnings mentioned above.

Using C++17 attribute, since this feels to be the most portable across
compilers solution.

Commit Details:

Full Hash: 7bd8c83e06f994c87ce803ecc486aedb49346a8d
Parent Commit: b028426
Lines Changed: +13, -2

5 Modified Paths:

/intern/cycles/kernel/device/cuda/compat.h (+4, -0) (Diff)
/intern/cycles/kernel/device/opencl/compat.h (+1, -0) (Diff)
/intern/cycles/kernel/device/optix/compat.h (+4, -0) (Diff)
/intern/cycles/kernel/integrator/integrator_state.h (+3, -2) (Diff)
/intern/cycles/util/util_defines.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021