W10 MSYS2 build warnings

Issue #1 resolved
Gaaned92 created an issue

Warnings when building ART

  • It would be cleaner if you could tag for instance with 0.0 in order not to carry old RT tags.

Version: 5.0-r1-gtk3-4246-g7eafc72ad
Branch: alberto-dev
Commit: 7eafc72ad
Commit date: 2019-09-06
Compiler: gcc 9.2.0
Processor: SSE4
System: Windows
Bit depth: 64 bits
Gtkmm: V3.24.1
Lensfun: V0.3.95.0
Exiv2: V0.27.2
Build type: release
Build flags: -m64 -mwin32 -msse2 -mfpmath=sse -mthreads -Wno-aggressive-loop-optimizations -Wno-parentheses -std=c++11 -mtune=generic -msse4 -Werror=unused-label -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-unused-result -fopenmp -Werror=unknown-pragmas -DNDEBUG -O3 -ftree-vectorize
Link flags: -m64 -mthreads -static-libgcc -mtune=generic -msse4 -s -O3 -fno-use-linker-plugin
OpenMP support: ON
MMAP support: ON

  • the first warning is already present in RT build

In file included from D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:96:
C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
15 | #warning Please include winsock2.h before windows.h
| ^~~
[ 8%] Building CXX object rtengine/CMakeFiles/rtengine.dir/dfmanager.cc.obj
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc: In member function 'void DCraw::nikon_yuv_load_raw()':
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:1406:17: warning: 'yuv[3]' may be used uninitialized in this function [-Wmaybe-uninitialized]
1406 | int row, col, yuv[4], rgb[3], b, c;
| ^~~
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:1406:17: warning: 'yuv[2]' may be used uninitialized in this function [-Wmaybe-uninitialized]

D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc: In member function 'void DCraw::foveon_interpolate()':
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[2][2]' may be used uninitialized in this function [-Wmaybe-uninitialized]
4171 | FORC3 last[i][j] += correct[i][c] * cam_xyz[c][j];
| ^
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[2][1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[2][0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[1][2]' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[1][1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[1][0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[0][2]' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[0][1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4171:41: warning: 'cam_xyz[0][0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4104:23: warning: '((void)& color_dq +8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
4104 | FORC3 mul[c] = dq[c]/div[c];
| ~^
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4123:23: note: '((void)& color_dq +8)' was declared here
4123 | float chroma_dq[3], color_dq[3], diag[3][3], div[3];
| ^
~
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4104:23: warning: '((void)& color_dq +4)' may be used uninitialized in this function [-Wmaybe-uninitialized]
4104 | FORC3 mul[c] = dq[c]/div[c];
| ~^
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4123:23: note: '((void)& color_dq +4)' was declared here
4123 | float chroma_dq[3], color_dq[3], diag[3][3], div[3];
| ^
~
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4104:23: warning: 'color_dq' may be used uninitialized in this function [-Wmaybe-uninitialized]
4104 | FORC3 mul[c] = dq[c]/div[c];
| ~^
D:/ART/ARTSOURCE/ART/rtengine/dcraw.cc:4123:23: note: 'color_dq' was declared here
4123 | float chroma_dq[3], color_dq[3], diag[3][3], div[3];
| ^
~

In file included from D:/ART/ARTSOURCE/ART/rtengine/perspectivecorrection.cc:97:
D:/ART/ARTSOURCE/ART/rtengine/ashift_dt.c:23:32: warning: '-fpermissive' is not an option that controls warnings [-Wpragmas]
23 | #pragma GCC diagnostic ignored "-fpermissive"
| ^~~~~~

Comments (3)

  1. Log in to comment