Skip to content

Commit 5933294

Browse files
committed
Merge pull request opencv#9806 from mshabunin:fix-static-7
2 parents 746d5f5 + ef332dc commit 5933294

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

3rdparty/libjpeg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
3838
set_source_files_properties(jcdctmgr.c PROPERTIES COMPILE_FLAGS "-O1")
3939
endif()
4040

41-
ocv_warnings_disable(CMAKE_C_FLAGS -Wcast-align -Wshadow -Wunused)
41+
ocv_warnings_disable(CMAKE_C_FLAGS -Wcast-align -Wshadow -Wunused -Wshift-negative-value)
4242
ocv_warnings_disable(CMAKE_C_FLAGS -Wunused-parameter) # clang
4343
ocv_warnings_disable(CMAKE_C_FLAGS /wd4013 /wd4244 /wd4267) # vs2005
4444

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;

modules/videoio/src/cap_dc1394_v2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,9 @@ bool CvCaptureCAM_DC1394_v2_CPP::grabFrame()
603603
cvInitImageHeader(&fhdr, cvSize(fc->size[0], fc->size[1]), 8, nch);
604604
cvSetData(&fhdr, fc->image, fc->size[0]*nch);
605605

606-
// Swap R&B channels:
607-
if (nch==3)
608-
cvConvertImage(&fhdr,&fhdr,CV_CVTIMG_SWAP_RB);
606+
// Swap R&B channels:
607+
if (nch==3)
608+
cvConvertImage(&fhdr,&fhdr,CV_CVTIMG_SWAP_RB);
609609

610610
if( rectify && cameraId == VIDERE && nimages == 2 )
611611
{

0 commit comments

Comments
 (0)