From 5a22d81fe5ef33b49a7689277c35c8ec171591ee Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Mon, 9 Oct 2017 13:33:55 +0300 Subject: [PATCH] Fixed warnings produced by static analyzer --- modules/dnn/src/ocl4dnn/include/ocl4dnn.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/dnn/src/ocl4dnn/include/ocl4dnn.hpp b/modules/dnn/src/ocl4dnn/include/ocl4dnn.hpp index 603c0aade0..09bda050bf 100644 --- a/modules/dnn/src/ocl4dnn/include/ocl4dnn.hpp +++ b/modules/dnn/src/ocl4dnn/include/ocl4dnn.hpp @@ -402,7 +402,10 @@ typedef enum { struct OCL4DNNLRNConfig { OCL4DNNLRNConfig() : - phase_test(true) + lrn_type(LRNParameter_NormRegion_ACROSS_CHANNELS), + phase_test(true), + local_size(0), alpha(0.f), beta(0.f), k(0.f), norm_by_size(false), + batch_size(0), channels(0), height(0), width(0) {} MatShape in_shape; LRNParameter_NormRegion_WITHIN_CHANNEL_t lrn_type; @@ -442,7 +445,7 @@ class OCL4DNNLRN struct OCL4DNNSoftmaxConfig { - OCL4DNNSoftmaxConfig() + OCL4DNNSoftmaxConfig() : axis(0), channels(0) {} MatShape in_shape; int axis;