Blender Git Loki

Git Commits -> Revision 38a2bf6

Revision 38a2bf6 by Sergey Sharybin (master)
May 20, 2017, 12:21 (GMT)
Cycles: Cleanup, style and unused arguments

- Some arguments were inapproriatry tagged as unused
using (void)foo semantic.

Only use such semantic in tricky casses, when something
needs to be ignored in release builds or something is
dependent on tricky ifndef policy.

For rest of the cases just use void foo(int /bar*/)
semantic, which ensures variable is not used. Solves
confusion and code running out of sync with later
development.

- Used proper unused semantic to some arguments.

- Added braces to make code easier to follow, tricky
indentation with ifdef, uh.

Commit Details:

Full Hash: 38a2bf665b2e5efd3bf6d54ffa0e2fc0385b9847
Parent Commit: 81e584e
Lines Changed: +6, -12

5 Modified Paths:

/intern/cycles/device/device_cpu.cpp (+1, -2) (Diff)
/intern/cycles/device/device_cuda.cpp (+0, -4) (Diff)
/intern/cycles/device/opencl/opencl_base.cpp (+0, -4) (Diff)
/intern/cycles/render/shader.cpp (+4, -1) (Diff)
/intern/cycles/util/util_guarded_allocator.h (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021