Skip to content

Commit 5a22d81

Browse files
committed
Fixed warnings produced by static analyzer
1 parent 8ac2c5d commit 5a22d81

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/dnn/src/ocl4dnn/include/ocl4dnn.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,10 @@ typedef enum {
402402
struct OCL4DNNLRNConfig
403403
{
404404
OCL4DNNLRNConfig() :
405-
phase_test(true)
405+
lrn_type(LRNParameter_NormRegion_ACROSS_CHANNELS),
406+
phase_test(true),
407+
local_size(0), alpha(0.f), beta(0.f), k(0.f), norm_by_size(false),
408+
batch_size(0), channels(0), height(0), width(0)
406409
{}
407410
MatShape in_shape;
408411
LRNParameter_NormRegion_WITHIN_CHANNEL_t lrn_type;
@@ -442,7 +445,7 @@ class OCL4DNNLRN
442445

443446
struct OCL4DNNSoftmaxConfig
444447
{
445-
OCL4DNNSoftmaxConfig()
448+
OCL4DNNSoftmaxConfig() : axis(0), channels(0)
446449
{}
447450
MatShape in_shape;
448451
int axis;

0 commit comments

Comments
 (0)