Cycles: Cleanup strict compiler warnings
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 18 Mar 2019 11:02:41 +0000 (12:02 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 18 Mar 2019 11:02:41 +0000 (12:02 +0100)
intern/cycles/device/device_multi.cpp
intern/cycles/render/light.cpp

index 516b86654aa9a6e496bb59d6383d65626657fcc8..3bab419ed05801d83d309c1eea9dd656953176b7 100644 (file)
@@ -145,6 +145,7 @@ public:
                                        return subresult;
 
                                case DEVICE_KERNEL_USING_FEATURE_KERNEL:
+                               case DEVICE_KERNEL_UNKNOWN:
                                        break;
                        }
                }
index 8073c62204098451b8e3d60612ba23e0916885fd..7101d2ab60c9c6a3d158ade8996e70941718c6fd 100644 (file)
@@ -191,7 +191,7 @@ bool LightManager::has_background_light(Scene *scene)
        return false;
 }
 
-void LightManager::disable_ineffective_light(Device *device, Scene *scene)
+void LightManager::disable_ineffective_light(Device * /*device*/, Scene *scene)
 {
        /* Make all lights enabled by default, and perform some preliminary checks
         * needed for finer-tuning of settings (for example, check whether we've