D: [iurt_root_command] chroot RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Installing /home/iurt/rpmbuild/SRPMS/mingw-cximage-600-17.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.eSGwC7 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + rm -rf mingw-cximage-600 + mkdir mingw-cximage-600 + pushd mingw-cximage-600 ~/rpmbuild/BUILD/mingw-cximage-600 ~/rpmbuild/BUILD + 7za x /home/iurt/rpmbuild/SOURCES/cximage600_full.7z 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,96 CPUs AMD EPYC 7571 (800F12),ASM,AES-NI) Scanning the drive for archives: 1 file, 1599654 bytes (1563 KiB) Extracting archive: /home/iurt/rpmbuild/SOURCES/cximage600_full.7z -- Path = /home/iurt/rpmbuild/SOURCES/cximage600_full.7z Type = 7z Physical Size = 1599654 Headers Size = 9352 Method = LZMA:22 Solid = + Blocks = 1 Everything is Ok Folders: 27 Files: 686 Size: 12097783 Compressed: 1599654 + echo 'Patch #0 (cximage-6.0.0-disable-some-formats.patch):' Patch #0 (cximage-6.0.0-disable-some-formats.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file CxImage/ximacfg.h + echo 'Patch #1 (cximage-6.0.0-rename_min_max.patch):' Patch #1 (cximage-6.0.0-rename_min_max.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file CxImage/ximabmp.cpp patching file CxImage/ximadef.h patching file CxImage/ximadsp.cpp patching file CxImage/ximage.cpp patching file CxImage/ximagif.cpp patching file CxImage/ximahist.cpp patching file CxImage/ximaint.cpp patching file CxImage/ximaiter.h patching file CxImage/ximapal.cpp patching file CxImage/ximapng.cpp patching file CxImage/ximaraw.cpp patching file CxImage/ximasel.cpp patching file CxImage/ximath.cpp patching file CxImage/ximatif.cpp patching file CxImage/ximatran.cpp patching file CxImage/ximawnd.cpp + echo 'Patch #2 (cximage-6.0.0-fix-include-name.patch):' Patch #2 (cximage-6.0.0-fix-include-name.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file CxImage/CxImageDLL/CxImageCrtDll.cpp + popd ~/rpmbuild/BUILD + cd /home/iurt/rpmbuild/BUILD + cd mingw-cximage-600 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.RDULA5 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd mingw-cximage-600 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + mkdir build_win32 + pushd build_win32 ~/rpmbuild/BUILD/mingw-cximage-600/build_win32 ~/rpmbuild/BUILD/mingw-cximage-600 ++ i686-w64-mingw32-pkg-config --cflags --libs libpng16 zlib + i686-w64-mingw32-g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -D_USRDLL -D_USRCxImageCrtDll -DCxImageCrtDll_EXPORTS -shared -o libcximage.dll -Wl,--out-implib,libcximage.dll.a ../CxImage/tif_xfile.cpp ../CxImage/ximabmp.cpp ../CxImage/ximadsp.cpp ../CxImage/ximaenc.cpp ../CxImage/ximaexif.cpp ../CxImage/ximage.cpp ../CxImage/ximagif.cpp ../CxImage/ximahist.cpp ../CxImage/ximaico.cpp ../CxImage/ximainfo.cpp ../CxImage/ximaint.cpp ../CxImage/ximajas.cpp ../CxImage/ximajbg.cpp ../CxImage/ximajpg.cpp ../CxImage/ximalpha.cpp ../CxImage/ximalyr.cpp ../CxImage/ximamng.cpp ../CxImage/ximapal.cpp ../CxImage/ximapcx.cpp ../CxImage/ximapng.cpp ../CxImage/ximaraw.cpp ../CxImage/ximasel.cpp ../CxImage/ximaska.cpp ../CxImage/ximatga.cpp ../CxImage/ximath.cpp ../CxImage/ximatif.cpp ../CxImage/ximatran.cpp ../CxImage/ximawbmp.cpp ../CxImage/ximawmf.cpp ../CxImage/ximawnd.cpp ../CxImage/xmemfile.cpp ../CxImage/CxImageDLL/CxImageCrtDll.cpp -lgdi32 -lws2_32 -ljpeg -ltiff -ljasper -I/usr/i686-w64-mingw32/sys-root/mingw/include/libpng16 -L/usr/lib64 -L/usr/i686-w64-mingw32/sys-root/mingw/lib -lpng16 -lz ../CxImage/ximadsp.cpp: In member function 'int CxImage::gen_convolve_matrix(float, float**)': ../CxImage/ximadsp.cpp:2095:6: warning: variable 'matrix_midpoint' set but not used [-Wunused-but-set-variable] 2095 | int matrix_midpoint; | ^~~~~~~~~~~~~~~ ../CxImage/ximadsp.cpp: In member function 'void CxImage::blur_line(float*, float*, int, BYTE*, BYTE*, int, long int)': ../CxImage/ximadsp.cpp:2207:9: warning: variable 'cmatrix_p' set but not used [-Wunused-but-set-variable] 2207 | float *cmatrix_p; | ^~~~~~~~~ ../CxImage/ximadsp.cpp: In member function 'bool CxImage::Lut(BYTE*)': ../CxImage/ximadsp.cpp:2775:10: warning: operation on 'iSrc' may be undefined [-Wsequence-point] 2775 | *iSrc++ = pLut[*iSrc]; | ~~~~^~ ../CxImage/ximadsp.cpp:2775:10: warning: operation on 'iSrc' may be undefined [-Wsequence-point] ../CxImage/ximadsp.cpp: In member function 'int CxImage::OptimalThreshold(long int, RECT*, CxImage*)': ../CxImage/ximadsp.cpp:3315:8: warning: statement has no effect [-Wunused-value] 3315 | for (k;k<=gray_max;k++) if (p[k] > 0) L -= p[k]*log(p[k]/w2)/w2; | ^ ../CxImage/ximadsp.cpp:3328:8: warning: statement has no effect [-Wunused-value] 3328 | for (k;k<=gray_max;k++){ | ^ ../CxImage/ximadsp.cpp: In member function 'void CxImage::blur_text(BYTE, BYTE, BYTE, CxImage*, CxImage*, BYTE)': ../CxImage/ximadsp.cpp:2404:38: warning: 'itTmp.CImageIterator::IterImage' may be used uninitialized in this function [-Wmaybe-uninitialized] 2404 | pDst[x-m*bytes] = (BYTE)(pDst[x]+(step*(m+1))); | ~~~~~~^ ../CxImage/ximaenc.cpp: In member function 'bool CxImage::CheckFormat(BYTE*, DWORD, DWORD)': ../CxImage/ximaenc.cpp:999:28: warning: NULL used in arithmetic [-Wpointer-arith] 999 | if (buffer==NULL || size==NULL){ | ^~~~ ../CxImage/ximaexif.cpp: In member function 'void CxImageJPG::CxExifInfo::process_SOFn(const BYTE*, int)': ../CxImage/ximaexif.cpp:768:9: warning: variable 'data_precision' set but not used [-Wunused-but-set-variable] 768 | int data_precision, num_components; | ^~~~~~~~~~~~~~ ../CxImage/ximagif.cpp: In member function 'bool CxImageGIF::Decode(CxFile*)': ../CxImage/ximagif.cpp:174:13: warning: variable 'has_white' set but not used [-Wunused-but-set-variable] 174 | int i, has_white = 0; | ^~~~~~~~~ ../CxImage/ximagif.cpp: In member function 'short int CxImageGIF::init_exp(short int)': ../CxImage/ximagif.cpp:980:31: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 980 | memset(prefix,0,MAX_CODES + 1); | ^ ../CxImage/ximagif.cpp: In member function 'void CxImageGIF::GetComment(char*)': ../CxImage/ximagif.cpp:1339:30: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1339 | { if (sz_comment_out) strncpy(sz_comment_out,m_comment,255); } | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximaico.cpp: In member function 'bool CxImageICO::Encode(CxFile*, bool, int)': ../CxImage/ximaico.cpp:327:30: warning: narrowing conversion of 'nPages' from 'int' to 'WORD' {aka 'short unsigned int'} [-Wnarrowing] 327 | ICONHEADER icon_header={0,1,nPages}; | ^~~~~~ ../CxImage/ximaico.cpp:350:6: warning: narrowing conversion of 'imagesize' from 'int' to 'DWORD' {aka 'long unsigned int'} [-Wnarrowing] 350 | 0, imagesize, | ^~~~~~~~~ ../CxImage/ximaint.cpp: In member function 'RGBQUAD CxImage::GetPixelColorInterpolated(float, float, CxImage::InterpolationMethod, CxImage::OverflowMethod, RGBQUAD*)': ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_NEAREST_NEIGHBOUR' not handled in switch [-Wswitch] 309 | switch (inMethod) { | ^ ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_BILINEAR' not handled in switch [-Wswitch] ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_LANCZOS' not handled in switch [-Wswitch] ../CxImage/ximaint.cpp:452:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 452 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:452:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 452 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:453:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 453 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:453:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 453 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:454:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 454 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:454:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 454 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:457:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 457 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:457:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 457 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:526:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 526 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:526:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 526 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:527:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 527 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:527:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 527 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:528:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 528 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:528:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 528 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:531:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 531 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:531:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 531 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp: In member function 'RGBQUAD CxImage::GetAreaColorInterpolated(float, float, float, float, CxImage::InterpolationMethod, CxImage::OverflowMethod, RGBQUAD*)': ../CxImage/ximaint.cpp:663:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 663 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:663:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 663 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:664:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 664 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:664:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 664 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:665:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 665 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:665:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 665 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:668:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 668 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:668:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 668 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximajas.cpp: In member function 'bool CxImageJAS::Decode(CxFile*, DWORD)': ../CxImage/ximajas.cpp:169:25: warning: 'fmt' may be used uninitialized in this function [-Wmaybe-uninitialized] 169 | if (info.nEscape == -1 && fmt>0){ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ ../CxImage/ximawmf.cpp: In member function 'HENHMETAFILE__* CxImageWMF::ConvertWmfFiletoEmf(CxFile*, CxImageWMF::METAFILEHEADER*)': ../CxImage/ximawmf.cpp:299:10: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare] 299 | if (len < sizeof(METAFILEHEADER)) return (hMeta); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawmf.cpp:331:10: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare] 331 | if (len < sizeof(METAHEADER)) return (hMeta); | ~~~~^~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawmf.cpp:360:6: warning: variable 'cx1' set but not used [-Wunused-but-set-variable] 360 | int cx1, cy1; | ^~~ ../CxImage/ximawmf.cpp:360:11: warning: variable 'cy1' set but not used [-Wunused-but-set-variable] 360 | int cx1, cy1; | ^~~ ../CxImage/ximawmf.cpp: In member function 'HENHMETAFILE__* CxImageWMF::ConvertEmfFiletoEmf(CxFile*, ENHMETAHEADER*)': ../CxImage/ximawmf.cpp:412:15: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare] 412 | if (iLenRead < sizeof(ENHMETAHEADER)) return NULL; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawnd.cpp: In member function 'long int CxImage::Draw(HDC, long int, long int, long int, long int, RECT*, bool)': ../CxImage/ximawnd.cpp:875:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 875 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbBlue)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:875:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:876:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 876 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbGreen)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:876:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:877:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 877 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbRed)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:877:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:920:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 920 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbBlue)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:920:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:921:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 921 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbGreen)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:921:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:922:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 922 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbRed)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:922:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp: In member function 'long int CxImage::LayerDrawAll(HDC, long int, long int, long int, long int, RECT*, bool)': ../CxImage/ximawnd.cpp:1397:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1397 | while(pLayer=GetLayer(n++)){ | ~~~~~~^~~~~~~~~~~~~~ ++ i686-w64-mingw32-pkg-config --cflags --libs libpng16 zlib + i686-w64-mingw32-g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -D_USRDLL -D_USRCxImageCrtDll -DCxImageCrtDll_EXPORTS -c ../CxImage/tif_xfile.cpp ../CxImage/ximabmp.cpp ../CxImage/ximadsp.cpp ../CxImage/ximaenc.cpp ../CxImage/ximaexif.cpp ../CxImage/ximage.cpp ../CxImage/ximagif.cpp ../CxImage/ximahist.cpp ../CxImage/ximaico.cpp ../CxImage/ximainfo.cpp ../CxImage/ximaint.cpp ../CxImage/ximajas.cpp ../CxImage/ximajbg.cpp ../CxImage/ximajpg.cpp ../CxImage/ximalpha.cpp ../CxImage/ximalyr.cpp ../CxImage/ximamng.cpp ../CxImage/ximapal.cpp ../CxImage/ximapcx.cpp ../CxImage/ximapng.cpp ../CxImage/ximaraw.cpp ../CxImage/ximasel.cpp ../CxImage/ximaska.cpp ../CxImage/ximatga.cpp ../CxImage/ximath.cpp ../CxImage/ximatif.cpp ../CxImage/ximatran.cpp ../CxImage/ximawbmp.cpp ../CxImage/ximawmf.cpp ../CxImage/ximawnd.cpp ../CxImage/xmemfile.cpp ../CxImage/CxImageDLL/CxImageCrtDll.cpp -lgdi32 -lws2_32 -ljpeg -ltiff -ljasper -I/usr/i686-w64-mingw32/sys-root/mingw/include/libpng16 -L/usr/lib64 -L/usr/i686-w64-mingw32/sys-root/mingw/lib -lpng16 -lz ../CxImage/ximadsp.cpp: In member function 'int CxImage::gen_convolve_matrix(float, float**)': ../CxImage/ximadsp.cpp:2095:6: warning: variable 'matrix_midpoint' set but not used [-Wunused-but-set-variable] 2095 | int matrix_midpoint; | ^~~~~~~~~~~~~~~ ../CxImage/ximadsp.cpp: In member function 'void CxImage::blur_line(float*, float*, int, BYTE*, BYTE*, int, long int)': ../CxImage/ximadsp.cpp:2207:9: warning: variable 'cmatrix_p' set but not used [-Wunused-but-set-variable] 2207 | float *cmatrix_p; | ^~~~~~~~~ ../CxImage/ximadsp.cpp: In member function 'bool CxImage::Lut(BYTE*)': ../CxImage/ximadsp.cpp:2775:10: warning: operation on 'iSrc' may be undefined [-Wsequence-point] 2775 | *iSrc++ = pLut[*iSrc]; | ~~~~^~ ../CxImage/ximadsp.cpp:2775:10: warning: operation on 'iSrc' may be undefined [-Wsequence-point] ../CxImage/ximadsp.cpp: In member function 'int CxImage::OptimalThreshold(long int, RECT*, CxImage*)': ../CxImage/ximadsp.cpp:3315:8: warning: statement has no effect [-Wunused-value] 3315 | for (k;k<=gray_max;k++) if (p[k] > 0) L -= p[k]*log(p[k]/w2)/w2; | ^ ../CxImage/ximadsp.cpp:3328:8: warning: statement has no effect [-Wunused-value] 3328 | for (k;k<=gray_max;k++){ | ^ ../CxImage/ximadsp.cpp: In member function 'void CxImage::blur_text(BYTE, BYTE, BYTE, CxImage*, CxImage*, BYTE)': ../CxImage/ximadsp.cpp:2404:38: warning: 'itTmp.CImageIterator::IterImage' may be used uninitialized in this function [-Wmaybe-uninitialized] 2404 | pDst[x-m*bytes] = (BYTE)(pDst[x]+(step*(m+1))); | ~~~~~~^ ../CxImage/ximaenc.cpp: In member function 'bool CxImage::CheckFormat(BYTE*, DWORD, DWORD)': ../CxImage/ximaenc.cpp:999:28: warning: NULL used in arithmetic [-Wpointer-arith] 999 | if (buffer==NULL || size==NULL){ | ^~~~ ../CxImage/ximaexif.cpp: In member function 'void CxImageJPG::CxExifInfo::process_SOFn(const BYTE*, int)': ../CxImage/ximaexif.cpp:768:9: warning: variable 'data_precision' set but not used [-Wunused-but-set-variable] 768 | int data_precision, num_components; | ^~~~~~~~~~~~~~ ../CxImage/ximagif.cpp: In member function 'bool CxImageGIF::Decode(CxFile*)': ../CxImage/ximagif.cpp:174:13: warning: variable 'has_white' set but not used [-Wunused-but-set-variable] 174 | int i, has_white = 0; | ^~~~~~~~~ ../CxImage/ximagif.cpp: In member function 'short int CxImageGIF::init_exp(short int)': ../CxImage/ximagif.cpp:980:31: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 980 | memset(prefix,0,MAX_CODES + 1); | ^ ../CxImage/ximagif.cpp: In member function 'void CxImageGIF::GetComment(char*)': ../CxImage/ximagif.cpp:1339:30: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1339 | { if (sz_comment_out) strncpy(sz_comment_out,m_comment,255); } | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximaico.cpp: In member function 'bool CxImageICO::Encode(CxFile*, bool, int)': ../CxImage/ximaico.cpp:327:30: warning: narrowing conversion of 'nPages' from 'int' to 'WORD' {aka 'short unsigned int'} [-Wnarrowing] 327 | ICONHEADER icon_header={0,1,nPages}; | ^~~~~~ ../CxImage/ximaico.cpp:350:6: warning: narrowing conversion of 'imagesize' from 'int' to 'DWORD' {aka 'long unsigned int'} [-Wnarrowing] 350 | 0, imagesize, | ^~~~~~~~~ ../CxImage/ximaint.cpp: In member function 'RGBQUAD CxImage::GetPixelColorInterpolated(float, float, CxImage::InterpolationMethod, CxImage::OverflowMethod, RGBQUAD*)': ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_NEAREST_NEIGHBOUR' not handled in switch [-Wswitch] 309 | switch (inMethod) { | ^ ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_BILINEAR' not handled in switch [-Wswitch] ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_LANCZOS' not handled in switch [-Wswitch] ../CxImage/ximaint.cpp:452:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 452 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:452:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 452 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:453:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 453 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:453:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 453 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:454:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 454 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:454:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 454 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:457:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 457 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:457:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 457 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:526:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 526 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:526:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 526 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:527:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 527 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:527:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 527 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:528:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 528 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:528:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 528 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:531:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 531 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:531:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 531 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp: In member function 'RGBQUAD CxImage::GetAreaColorInterpolated(float, float, float, float, CxImage::InterpolationMethod, CxImage::OverflowMethod, RGBQUAD*)': ../CxImage/ximaint.cpp:663:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 663 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:663:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 663 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:664:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 664 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:664:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 664 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:665:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 665 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:665:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 665 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:668:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 668 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:668:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 668 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximajas.cpp: In member function 'bool CxImageJAS::Decode(CxFile*, DWORD)': ../CxImage/ximajas.cpp:169:25: warning: 'fmt' may be used uninitialized in this function [-Wmaybe-uninitialized] 169 | if (info.nEscape == -1 && fmt>0){ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ ../CxImage/ximawmf.cpp: In member function 'HENHMETAFILE__* CxImageWMF::ConvertWmfFiletoEmf(CxFile*, CxImageWMF::METAFILEHEADER*)': ../CxImage/ximawmf.cpp:299:10: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare] 299 | if (len < sizeof(METAFILEHEADER)) return (hMeta); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawmf.cpp:331:10: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare] 331 | if (len < sizeof(METAHEADER)) return (hMeta); | ~~~~^~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawmf.cpp:360:6: warning: variable 'cx1' set but not used [-Wunused-but-set-variable] 360 | int cx1, cy1; | ^~~ ../CxImage/ximawmf.cpp:360:11: warning: variable 'cy1' set but not used [-Wunused-but-set-variable] 360 | int cx1, cy1; | ^~~ ../CxImage/ximawmf.cpp: In member function 'HENHMETAFILE__* CxImageWMF::ConvertEmfFiletoEmf(CxFile*, ENHMETAHEADER*)': ../CxImage/ximawmf.cpp:412:15: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare] 412 | if (iLenRead < sizeof(ENHMETAHEADER)) return NULL; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawnd.cpp: In member function 'long int CxImage::Draw(HDC, long int, long int, long int, long int, RECT*, bool)': ../CxImage/ximawnd.cpp:875:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 875 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbBlue)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:875:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:876:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 876 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbGreen)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:876:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:877:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 877 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbRed)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:877:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:920:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 920 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbBlue)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:920:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:921:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 921 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbGreen)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:921:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:922:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 922 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbRed)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:922:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp: In member function 'long int CxImage::LayerDrawAll(HDC, long int, long int, long int, long int, RECT*, bool)': ../CxImage/ximawnd.cpp:1397:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1397 | while(pLayer=GetLayer(n++)){ | ~~~~~~^~~~~~~~~~~~~~ + i686-w64-mingw32-ar -cru libcximage.a CxImageCrtDll.o tif_xfile.o ximabmp.o ximadsp.o ximaenc.o ximaexif.o ximage.o ximagif.o ximahist.o ximaico.o ximainfo.o ximaint.o ximajas.o ximajbg.o ximajpg.o ximalpha.o ximalyr.o ximamng.o ximapal.o ximapcx.o ximapng.o ximaraw.o ximasel.o ximaska.o ximatga.o ximath.o ximatif.o ximatran.o ximawbmp.o ximawmf.o ximawnd.o xmemfile.o + popd ~/rpmbuild/BUILD/mingw-cximage-600 + mkdir build_win64 + pushd build_win64 ~/rpmbuild/BUILD/mingw-cximage-600/build_win64 ~/rpmbuild/BUILD/mingw-cximage-600 ++ x86_64-w64-mingw32-pkg-config --cflags --libs libpng16 zlib + x86_64-w64-mingw32-g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -D_USRDLL -D_USRCxImageCrtDll -DCxImageCrtDll_EXPORTS -shared -o libcximage.dll -Wl,--out-implib,libcximage.dll.a ../CxImage/tif_xfile.cpp ../CxImage/ximabmp.cpp ../CxImage/ximadsp.cpp ../CxImage/ximaenc.cpp ../CxImage/ximaexif.cpp ../CxImage/ximage.cpp ../CxImage/ximagif.cpp ../CxImage/ximahist.cpp ../CxImage/ximaico.cpp ../CxImage/ximainfo.cpp ../CxImage/ximaint.cpp ../CxImage/ximajas.cpp ../CxImage/ximajbg.cpp ../CxImage/ximajpg.cpp ../CxImage/ximalpha.cpp ../CxImage/ximalyr.cpp ../CxImage/ximamng.cpp ../CxImage/ximapal.cpp ../CxImage/ximapcx.cpp ../CxImage/ximapng.cpp ../CxImage/ximaraw.cpp ../CxImage/ximasel.cpp ../CxImage/ximaska.cpp ../CxImage/ximatga.cpp ../CxImage/ximath.cpp ../CxImage/ximatif.cpp ../CxImage/ximatran.cpp ../CxImage/ximawbmp.cpp ../CxImage/ximawmf.cpp ../CxImage/ximawnd.cpp ../CxImage/xmemfile.cpp ../CxImage/CxImageDLL/CxImageCrtDll.cpp -lgdi32 -lws2_32 -ljpeg -ltiff -ljasper -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libpng16 -L/usr/lib64 -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lpng16 -lz ../CxImage/ximadsp.cpp: In member function 'int CxImage::gen_convolve_matrix(float, float**)': ../CxImage/ximadsp.cpp:2095:6: warning: variable 'matrix_midpoint' set but not used [-Wunused-but-set-variable] 2095 | int matrix_midpoint; | ^~~~~~~~~~~~~~~ ../CxImage/ximadsp.cpp: In member function 'void CxImage::blur_line(float*, float*, int, BYTE*, BYTE*, int, long int)': ../CxImage/ximadsp.cpp:2207:9: warning: variable 'cmatrix_p' set but not used [-Wunused-but-set-variable] 2207 | float *cmatrix_p; | ^~~~~~~~~ ../CxImage/ximadsp.cpp: In member function 'bool CxImage::Lut(BYTE*)': ../CxImage/ximadsp.cpp:2775:10: warning: operation on 'iSrc' may be undefined [-Wsequence-point] 2775 | *iSrc++ = pLut[*iSrc]; | ~~~~^~ ../CxImage/ximadsp.cpp:2775:10: warning: operation on 'iSrc' may be undefined [-Wsequence-point] ../CxImage/ximadsp.cpp: In member function 'int CxImage::OptimalThreshold(long int, RECT*, CxImage*)': ../CxImage/ximadsp.cpp:3315:8: warning: statement has no effect [-Wunused-value] 3315 | for (k;k<=gray_max;k++) if (p[k] > 0) L -= p[k]*log(p[k]/w2)/w2; | ^ ../CxImage/ximadsp.cpp:3328:8: warning: statement has no effect [-Wunused-value] 3328 | for (k;k<=gray_max;k++){ | ^ ../CxImage/ximadsp.cpp: In member function 'void CxImage::blur_text(BYTE, BYTE, BYTE, CxImage*, CxImage*, BYTE)': ../CxImage/ximadsp.cpp:2404:38: warning: 'itTmp.CImageIterator::IterImage' may be used uninitialized in this function [-Wmaybe-uninitialized] 2404 | pDst[x-m*bytes] = (BYTE)(pDst[x]+(step*(m+1))); | ~~~~~~^ ../CxImage/ximaenc.cpp: In member function 'bool CxImage::CheckFormat(BYTE*, DWORD, DWORD)': ../CxImage/ximaenc.cpp:999:28: warning: NULL used in arithmetic [-Wpointer-arith] 999 | if (buffer==NULL || size==NULL){ | ^~~~ ../CxImage/ximaexif.cpp: In member function 'void CxImageJPG::CxExifInfo::process_SOFn(const BYTE*, int)': ../CxImage/ximaexif.cpp:768:9: warning: variable 'data_precision' set but not used [-Wunused-but-set-variable] 768 | int data_precision, num_components; | ^~~~~~~~~~~~~~ ../CxImage/ximagif.cpp: In member function 'bool CxImageGIF::Decode(CxFile*)': ../CxImage/ximagif.cpp:174:13: warning: variable 'has_white' set but not used [-Wunused-but-set-variable] 174 | int i, has_white = 0; | ^~~~~~~~~ ../CxImage/ximagif.cpp: In member function 'short int CxImageGIF::init_exp(short int)': ../CxImage/ximagif.cpp:980:31: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 980 | memset(prefix,0,MAX_CODES + 1); | ^ ../CxImage/ximagif.cpp: In member function 'void CxImageGIF::GetComment(char*)': ../CxImage/ximagif.cpp:1339:30: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1339 | { if (sz_comment_out) strncpy(sz_comment_out,m_comment,255); } | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximaico.cpp: In member function 'bool CxImageICO::Encode(CxFile*, bool, int)': ../CxImage/ximaico.cpp:327:30: warning: narrowing conversion of 'nPages' from 'int' to 'WORD' {aka 'short unsigned int'} [-Wnarrowing] 327 | ICONHEADER icon_header={0,1,nPages}; | ^~~~~~ ../CxImage/ximaico.cpp:350:6: warning: narrowing conversion of 'imagesize' from 'int' to 'DWORD' {aka 'long unsigned int'} [-Wnarrowing] 350 | 0, imagesize, | ^~~~~~~~~ ../CxImage/ximaint.cpp: In member function 'RGBQUAD CxImage::GetPixelColorInterpolated(float, float, CxImage::InterpolationMethod, CxImage::OverflowMethod, RGBQUAD*)': ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_NEAREST_NEIGHBOUR' not handled in switch [-Wswitch] 309 | switch (inMethod) { | ^ ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_BILINEAR' not handled in switch [-Wswitch] ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_LANCZOS' not handled in switch [-Wswitch] ../CxImage/ximaint.cpp:452:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 452 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:452:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 452 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:453:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 453 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:453:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 453 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:454:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 454 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:454:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 454 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:457:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 457 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:457:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 457 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:526:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 526 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:526:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 526 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:527:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 527 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:527:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 527 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:528:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 528 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:528:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 528 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:531:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 531 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:531:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 531 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp: In member function 'RGBQUAD CxImage::GetAreaColorInterpolated(float, float, float, float, CxImage::InterpolationMethod, CxImage::OverflowMethod, RGBQUAD*)': ../CxImage/ximaint.cpp:663:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 663 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:663:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 663 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:664:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 664 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:664:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 664 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:665:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 665 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:665:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 665 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:668:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 668 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:668:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 668 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximajas.cpp: In member function 'bool CxImageJAS::Decode(CxFile*, DWORD)': ../CxImage/ximajas.cpp:169:25: warning: 'fmt' may be used uninitialized in this function [-Wmaybe-uninitialized] 169 | if (info.nEscape == -1 && fmt>0){ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ ../CxImage/ximawmf.cpp: In member function 'HENHMETAFILE__* CxImageWMF::ConvertWmfFiletoEmf(CxFile*, CxImageWMF::METAFILEHEADER*)': ../CxImage/ximawmf.cpp:299:10: warning: comparison of integer expressions of different signedness: 'long int' and 'long long unsigned int' [-Wsign-compare] 299 | if (len < sizeof(METAFILEHEADER)) return (hMeta); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawmf.cpp:331:10: warning: comparison of integer expressions of different signedness: 'long int' and 'long long unsigned int' [-Wsign-compare] 331 | if (len < sizeof(METAHEADER)) return (hMeta); | ~~~~^~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawmf.cpp:360:6: warning: variable 'cx1' set but not used [-Wunused-but-set-variable] 360 | int cx1, cy1; | ^~~ ../CxImage/ximawmf.cpp:360:11: warning: variable 'cy1' set but not used [-Wunused-but-set-variable] 360 | int cx1, cy1; | ^~~ ../CxImage/ximawmf.cpp: In member function 'HENHMETAFILE__* CxImageWMF::ConvertEmfFiletoEmf(CxFile*, ENHMETAHEADER*)': ../CxImage/ximawmf.cpp:412:15: warning: comparison of integer expressions of different signedness: 'long int' and 'long long unsigned int' [-Wsign-compare] 412 | if (iLenRead < sizeof(ENHMETAHEADER)) return NULL; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawnd.cpp: In member function 'long int CxImage::Draw(HDC, long int, long int, long int, long int, RECT*, bool)': ../CxImage/ximawnd.cpp:875:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 875 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbBlue)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:875:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:876:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 876 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbGreen)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:876:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:877:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 877 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbRed)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:877:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:920:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 920 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbBlue)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:920:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:921:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 921 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbGreen)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:921:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:922:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 922 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbRed)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:922:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp: In member function 'long int CxImage::LayerDrawAll(HDC, long int, long int, long int, long int, RECT*, bool)': ../CxImage/ximawnd.cpp:1397:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1397 | while(pLayer=GetLayer(n++)){ | ~~~~~~^~~~~~~~~~~~~~ ++ x86_64-w64-mingw32-pkg-config --cflags --libs libpng16 zlib + x86_64-w64-mingw32-g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -D_USRDLL -D_USRCxImageCrtDll -DCxImageCrtDll_EXPORTS -c ../CxImage/tif_xfile.cpp ../CxImage/ximabmp.cpp ../CxImage/ximadsp.cpp ../CxImage/ximaenc.cpp ../CxImage/ximaexif.cpp ../CxImage/ximage.cpp ../CxImage/ximagif.cpp ../CxImage/ximahist.cpp ../CxImage/ximaico.cpp ../CxImage/ximainfo.cpp ../CxImage/ximaint.cpp ../CxImage/ximajas.cpp ../CxImage/ximajbg.cpp ../CxImage/ximajpg.cpp ../CxImage/ximalpha.cpp ../CxImage/ximalyr.cpp ../CxImage/ximamng.cpp ../CxImage/ximapal.cpp ../CxImage/ximapcx.cpp ../CxImage/ximapng.cpp ../CxImage/ximaraw.cpp ../CxImage/ximasel.cpp ../CxImage/ximaska.cpp ../CxImage/ximatga.cpp ../CxImage/ximath.cpp ../CxImage/ximatif.cpp ../CxImage/ximatran.cpp ../CxImage/ximawbmp.cpp ../CxImage/ximawmf.cpp ../CxImage/ximawnd.cpp ../CxImage/xmemfile.cpp ../CxImage/CxImageDLL/CxImageCrtDll.cpp -lgdi32 -lws2_32 -ljpeg -ltiff -ljasper -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/libpng16 -L/usr/lib64 -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lpng16 -lz ../CxImage/ximadsp.cpp: In member function 'int CxImage::gen_convolve_matrix(float, float**)': ../CxImage/ximadsp.cpp:2095:6: warning: variable 'matrix_midpoint' set but not used [-Wunused-but-set-variable] 2095 | int matrix_midpoint; | ^~~~~~~~~~~~~~~ ../CxImage/ximadsp.cpp: In member function 'void CxImage::blur_line(float*, float*, int, BYTE*, BYTE*, int, long int)': ../CxImage/ximadsp.cpp:2207:9: warning: variable 'cmatrix_p' set but not used [-Wunused-but-set-variable] 2207 | float *cmatrix_p; | ^~~~~~~~~ ../CxImage/ximadsp.cpp: In member function 'bool CxImage::Lut(BYTE*)': ../CxImage/ximadsp.cpp:2775:10: warning: operation on 'iSrc' may be undefined [-Wsequence-point] 2775 | *iSrc++ = pLut[*iSrc]; | ~~~~^~ ../CxImage/ximadsp.cpp:2775:10: warning: operation on 'iSrc' may be undefined [-Wsequence-point] ../CxImage/ximadsp.cpp: In member function 'int CxImage::OptimalThreshold(long int, RECT*, CxImage*)': ../CxImage/ximadsp.cpp:3315:8: warning: statement has no effect [-Wunused-value] 3315 | for (k;k<=gray_max;k++) if (p[k] > 0) L -= p[k]*log(p[k]/w2)/w2; | ^ ../CxImage/ximadsp.cpp:3328:8: warning: statement has no effect [-Wunused-value] 3328 | for (k;k<=gray_max;k++){ | ^ ../CxImage/ximadsp.cpp: In member function 'void CxImage::blur_text(BYTE, BYTE, BYTE, CxImage*, CxImage*, BYTE)': ../CxImage/ximadsp.cpp:2404:38: warning: 'itTmp.CImageIterator::IterImage' may be used uninitialized in this function [-Wmaybe-uninitialized] 2404 | pDst[x-m*bytes] = (BYTE)(pDst[x]+(step*(m+1))); | ~~~~~~^ ../CxImage/ximaenc.cpp: In member function 'bool CxImage::CheckFormat(BYTE*, DWORD, DWORD)': ../CxImage/ximaenc.cpp:999:28: warning: NULL used in arithmetic [-Wpointer-arith] 999 | if (buffer==NULL || size==NULL){ | ^~~~ ../CxImage/ximaexif.cpp: In member function 'void CxImageJPG::CxExifInfo::process_SOFn(const BYTE*, int)': ../CxImage/ximaexif.cpp:768:9: warning: variable 'data_precision' set but not used [-Wunused-but-set-variable] 768 | int data_precision, num_components; | ^~~~~~~~~~~~~~ ../CxImage/ximagif.cpp: In member function 'bool CxImageGIF::Decode(CxFile*)': ../CxImage/ximagif.cpp:174:13: warning: variable 'has_white' set but not used [-Wunused-but-set-variable] 174 | int i, has_white = 0; | ^~~~~~~~~ ../CxImage/ximagif.cpp: In member function 'short int CxImageGIF::init_exp(short int)': ../CxImage/ximagif.cpp:980:31: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 980 | memset(prefix,0,MAX_CODES + 1); | ^ ../CxImage/ximagif.cpp: In member function 'void CxImageGIF::GetComment(char*)': ../CxImage/ximagif.cpp:1339:30: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation] 1339 | { if (sz_comment_out) strncpy(sz_comment_out,m_comment,255); } | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximaico.cpp: In member function 'bool CxImageICO::Encode(CxFile*, bool, int)': ../CxImage/ximaico.cpp:327:30: warning: narrowing conversion of 'nPages' from 'int' to 'WORD' {aka 'short unsigned int'} [-Wnarrowing] 327 | ICONHEADER icon_header={0,1,nPages}; | ^~~~~~ ../CxImage/ximaico.cpp:350:6: warning: narrowing conversion of 'imagesize' from 'int' to 'DWORD' {aka 'long unsigned int'} [-Wnarrowing] 350 | 0, imagesize, | ^~~~~~~~~ ../CxImage/ximaint.cpp: In member function 'RGBQUAD CxImage::GetPixelColorInterpolated(float, float, CxImage::InterpolationMethod, CxImage::OverflowMethod, RGBQUAD*)': ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_NEAREST_NEIGHBOUR' not handled in switch [-Wswitch] 309 | switch (inMethod) { | ^ ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_BILINEAR' not handled in switch [-Wswitch] ../CxImage/ximaint.cpp:309:14: warning: enumeration value 'IM_LANCZOS' not handled in switch [-Wswitch] ../CxImage/ximaint.cpp:452:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 452 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:452:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 452 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:453:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 453 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:453:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 453 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:454:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 454 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:454:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 454 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:457:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 457 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:457:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 457 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:526:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 526 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:526:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 526 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:527:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 527 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:527:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 527 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:528:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 528 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:528:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 528 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:531:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 531 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:531:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 531 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp: In member function 'RGBQUAD CxImage::GetAreaColorInterpolated(float, float, float, float, CxImage::InterpolationMethod, CxImage::OverflowMethod, RGBQUAD*)': ../CxImage/ximaint.cpp:663:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 663 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:663:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 663 | if (rr>255) rr=255; if (rr<0) rr=0; color.rgbRed=(BYTE) rr; | ^~ ../CxImage/ximaint.cpp:664:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 664 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:664:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 664 | if (gg>255) gg=255; if (gg<0) gg=0; color.rgbGreen=(BYTE) gg; | ^~ ../CxImage/ximaint.cpp:665:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 665 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:665:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 665 | if (bb>255) bb=255; if (bb<0) bb=0; color.rgbBlue=(BYTE) bb; | ^~ ../CxImage/ximaint.cpp:668:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 668 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximaint.cpp:668:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 668 | if (aa>255) aa=255; if (aa<0) aa=0; color.rgbReserved=(BYTE) aa; | ^~ ../CxImage/ximajas.cpp: In member function 'bool CxImageJAS::Decode(CxFile*, DWORD)': ../CxImage/ximajas.cpp:169:25: warning: 'fmt' may be used uninitialized in this function [-Wmaybe-uninitialized] 169 | if (info.nEscape == -1 && fmt>0){ | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ ../CxImage/ximawmf.cpp: In member function 'HENHMETAFILE__* CxImageWMF::ConvertWmfFiletoEmf(CxFile*, CxImageWMF::METAFILEHEADER*)': ../CxImage/ximawmf.cpp:299:10: warning: comparison of integer expressions of different signedness: 'long int' and 'long long unsigned int' [-Wsign-compare] 299 | if (len < sizeof(METAFILEHEADER)) return (hMeta); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawmf.cpp:331:10: warning: comparison of integer expressions of different signedness: 'long int' and 'long long unsigned int' [-Wsign-compare] 331 | if (len < sizeof(METAHEADER)) return (hMeta); | ~~~~^~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawmf.cpp:360:6: warning: variable 'cx1' set but not used [-Wunused-but-set-variable] 360 | int cx1, cy1; | ^~~ ../CxImage/ximawmf.cpp:360:11: warning: variable 'cy1' set but not used [-Wunused-but-set-variable] 360 | int cx1, cy1; | ^~~ ../CxImage/ximawmf.cpp: In member function 'HENHMETAFILE__* CxImageWMF::ConvertEmfFiletoEmf(CxFile*, ENHMETAHEADER*)': ../CxImage/ximawmf.cpp:412:15: warning: comparison of integer expressions of different signedness: 'long int' and 'long long unsigned int' [-Wsign-compare] 412 | if (iLenRead < sizeof(ENHMETAHEADER)) return NULL; | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ../CxImage/ximawnd.cpp: In member function 'long int CxImage::Draw(HDC, long int, long int, long int, long int, RECT*, bool)': ../CxImage/ximawnd.cpp:875:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 875 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbBlue)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:875:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:876:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 876 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbGreen)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:876:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:877:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 877 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbRed)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:877:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:920:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 920 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbBlue)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:920:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:921:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 921 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbGreen)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:921:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp:922:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] 922 | *pdst++=(BYTE)((*pdst * a1 + a * c.rgbRed)>>8); | ~~~~^~ ../CxImage/ximawnd.cpp:922:14: warning: operation on 'pdst' may be undefined [-Wsequence-point] ../CxImage/ximawnd.cpp: In member function 'long int CxImage::LayerDrawAll(HDC, long int, long int, long int, long int, RECT*, bool)': ../CxImage/ximawnd.cpp:1397:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1397 | while(pLayer=GetLayer(n++)){ | ~~~~~~^~~~~~~~~~~~~~ + x86_64-w64-mingw32-ar -cru libcximage.a CxImageCrtDll.o tif_xfile.o ximabmp.o ximadsp.o ximaenc.o ximaexif.o ximage.o ximagif.o ximahist.o ximaico.o ximainfo.o ximaint.o ximajas.o ximajbg.o ximajpg.o ximalpha.o ximalyr.o ximamng.o ximapal.o ximapcx.o ximapng.o ximaraw.o ximasel.o ximaska.o ximatga.o ximath.o ximatif.o ximatran.o ximawbmp.o ximawmf.o ximawnd.o xmemfile.o + popd ~/rpmbuild/BUILD/mingw-cximage-600 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.SbVsG6 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64 + cd mingw-cximage-600 + '[' 1 -eq 1 ']' + install -d /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/bin + install -d /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig + install -m0644 /home/iurt/rpmbuild/SOURCES/cximage.pc /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig + sed -i 's!@PREFIX@!/usr/i686-w64-mingw32/sys-root/mingw!g' /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/cximage.pc + install -m0644 build_win32/libcximage.dll /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/bin/libcximage.dll + install -m0644 build_win32/libcximage.dll.a /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/lib/libcximage.dll.a + install -m0644 build_win32/libcximage.a /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/lib/libcximage.a + install -d /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/include/CxImage/ + install -m0644 CxImage/xfile.h CxImage/ximabmp.h CxImage/ximacfg.h CxImage/ximadef.h CxImage/ximage.h CxImage/ximagif.h CxImage/ximaico.h CxImage/ximaiter.h CxImage/ximajas.h CxImage/ximajbg.h CxImage/ximajpg.h CxImage/ximamng.h CxImage/ximapcx.h CxImage/ximapng.h CxImage/ximaraw.h CxImage/ximaska.h CxImage/ximatga.h CxImage/ximath.h CxImage/ximatif.h CxImage/ximawbmp.h CxImage/ximawmf.h CxImage/xiofile.h CxImage/xmemfile.h /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/i686-w64-mingw32/sys-root/mingw/include/CxImage/ + install -d /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/bin + install -d /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig + install -m0644 /home/iurt/rpmbuild/SOURCES/cximage.pc /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig + sed -i 's!@PREFIX@!/usr/x86_64-w64-mingw32/sys-root/mingw!g' /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/cximage.pc + install -m0644 build_win64/libcximage.dll /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/bin/libcximage.dll + install -m0644 build_win64/libcximage.dll.a /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.dll.a + install -m0644 build_win64/libcximage.a /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcximage.a + install -d /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/include/CxImage/ + install -m0644 CxImage/xfile.h CxImage/ximabmp.h CxImage/ximacfg.h CxImage/ximadef.h CxImage/ximage.h CxImage/ximagif.h CxImage/ximaico.h CxImage/ximaiter.h CxImage/ximajas.h CxImage/ximajbg.h CxImage/ximajpg.h CxImage/ximamng.h CxImage/ximapcx.h CxImage/ximapng.h CxImage/ximaraw.h CxImage/ximaska.h CxImage/ximatga.h CxImage/ximath.h CxImage/ximatif.h CxImage/ximawbmp.h CxImage/ximawmf.h CxImage/xiofile.h CxImage/xmemfile.h /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64//usr/x86_64-w64-mingw32/sys-root/mingw/include/CxImage/ + /usr/lib/rpm/mingw-find-debuginfo.sh /home/iurt/rpmbuild/BUILD/mingw-cximage-600 mingw32 mingw64 extracting debug info from /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libcximage.dll ~/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/x86_64-w64-mingw32/sys-root/mingw/bin ~/rpmbuild/BUILD/mingw-cximage-600 ~/rpmbuild/BUILD/mingw-cximage-600 extracting debug info from /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/i686-w64-mingw32/sys-root/mingw/bin/libcximage.dll ~/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/i686-w64-mingw32/sys-root/mingw/bin ~/rpmbuild/BUILD/mingw-cximage-600 ~/rpmbuild/BUILD/mingw-cximage-600 + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: mingw32-cximage-600-17.mga8.noarch Executing(%doc): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.O0RCv7 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd mingw-cximage-600 + DOCDIR=/home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/share/doc/mingw32-cximage + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/share/doc/mingw32-cximage + cp -pr CxImage/license.txt /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/share/doc/mingw32-cximage + RPM_EC=0 ++ jobs -p + exit 0 warning: Deprecated external dependency generator is used! Finding Provides: /usr/lib/rpm/mingw-find-provides.sh mingw32 mingw64 Finding Requires(interp): Finding Requires(rpmlib): Finding Requires(verify): Finding Requires(pre): Finding Requires(post): Finding Requires(preun): Finding Requires(postun): Finding Requires(pretrans): Finding Requires(posttrans): Finding Requires: /usr/lib/rpm/mingw-find-requires.sh mingw32 mingw64 Finding Conflicts: Finding Obsoletes: Finding Recommends: Finding Suggests: Finding Supplements: Finding Enhances: Provides: mingw32(libcximage.dll) mingw32-cximage = 600-17.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: mingw32(gdi32.dll) mingw32(kernel32.dll) mingw32(libgcc_s_sjlj-1.dll) mingw32(libjasper-4.dll) mingw32(libjpeg-62.dll) mingw32(libpng16-16.dll) mingw32(libstdc++-6.dll) mingw32(libtiff-5.dll) mingw32(msvcrt.dll) mingw32(user32.dll) mingw32-crt mingw32-filesystem >= 95 mingw32-pkg-config Processing files: mingw32-cximage-static-600-17.mga8.noarch warning: Deprecated external dependency generator is used! Finding Provides: /usr/lib/rpm/mingw-find-provides.sh mingw32 mingw64 Finding Requires(interp): Finding Requires(rpmlib): Finding Requires(verify): Finding Requires(pre): Finding Requires(post): Finding Requires(preun): Finding Requires(postun): Finding Requires(pretrans): Finding Requires(posttrans): Finding Requires: /usr/lib/rpm/mingw-find-requires.sh mingw32 mingw64 Finding Conflicts: Finding Obsoletes: Finding Recommends: Finding Suggests: Finding Supplements: Finding Enhances: Provides: mingw32-cximage-static = 600-17.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: mingw64-cximage-600-17.mga8.noarch Executing(%doc): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.YOSZD6 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd mingw-cximage-600 + DOCDIR=/home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/share/doc/mingw64-cximage + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/share/doc/mingw64-cximage + cp -pr CxImage/license.txt /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64/usr/share/doc/mingw64-cximage + RPM_EC=0 ++ jobs -p + exit 0 warning: Deprecated external dependency generator is used! Finding Provides: /usr/lib/rpm/mingw-find-provides.sh mingw32 mingw64 Finding Requires(interp): Finding Requires(rpmlib): Finding Requires(verify): Finding Requires(pre): Finding Requires(post): Finding Requires(preun): Finding Requires(postun): Finding Requires(pretrans): Finding Requires(posttrans): Finding Requires: /usr/lib/rpm/mingw-find-requires.sh mingw32 mingw64 Finding Conflicts: Finding Obsoletes: Finding Recommends: Finding Suggests: Finding Supplements: Finding Enhances: Provides: mingw64(libcximage.dll) mingw64-cximage = 600-17.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: mingw64(gdi32.dll) mingw64(kernel32.dll) mingw64(libgcc_s_seh-1.dll) mingw64(libjasper-4.dll) mingw64(libjpeg-62.dll) mingw64(libpng16-16.dll) mingw64(libstdc++-6.dll) mingw64(libtiff-5.dll) mingw64(msvcrt.dll) mingw64(user32.dll) mingw64-crt mingw64-filesystem >= 95 mingw64-pkg-config Processing files: mingw64-cximage-static-600-17.mga8.noarch warning: Deprecated external dependency generator is used! Finding Provides: /usr/lib/rpm/mingw-find-provides.sh mingw32 mingw64 Finding Requires(interp): Finding Requires(rpmlib): Finding Requires(verify): Finding Requires(pre): Finding Requires(post): Finding Requires(preun): Finding Requires(postun): Finding Requires(pretrans): Finding Requires(posttrans): Finding Requires: /usr/lib/rpm/mingw-find-requires.sh mingw32 mingw64 Finding Conflicts: Finding Obsoletes: Finding Recommends: Finding Suggests: Finding Supplements: Finding Enhances: Provides: mingw64-cximage-static = 600-17.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: mingw32-cximage-debuginfo-600-17.mga8.noarch warning: Deprecated external dependency generator is used! Finding Provides: /usr/lib/rpm/mingw-find-provides.sh mingw32 mingw64 Finding Requires(interp): Finding Requires(rpmlib): Finding Requires(verify): Finding Requires(pre): Finding Requires(post): Finding Requires(preun): Finding Requires(postun): Finding Requires(pretrans): Finding Requires(posttrans): Finding Requires: /usr/lib/rpm/mingw-find-requires.sh mingw32 mingw64 Finding Conflicts: Finding Obsoletes: Finding Recommends: Finding Suggests: Finding Supplements: Finding Enhances: Provides: mingw32-cximage-debuginfo = 600-17.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: mingw64-cximage-debuginfo-600-17.mga8.noarch warning: Deprecated external dependency generator is used! Finding Provides: /usr/lib/rpm/mingw-find-provides.sh mingw32 mingw64 Finding Requires(interp): Finding Requires(rpmlib): Finding Requires(verify): Finding Requires(pre): Finding Requires(post): Finding Requires(preun): Finding Requires(postun): Finding Requires(pretrans): Finding Requires(posttrans): Finding Requires: /usr/lib/rpm/mingw-find-requires.sh mingw32 mingw64 Finding Conflicts: Finding Obsoletes: Finding Recommends: Finding Suggests: Finding Supplements: Finding Enhances: Provides: mingw64-cximage-debuginfo = 600-17.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64 Wrote: /home/iurt/rpmbuild/RPMS/noarch/mingw64-cximage-600-17.mga8.noarch.rpm Wrote: /home/iurt/rpmbuild/RPMS/noarch/mingw32-cximage-600-17.mga8.noarch.rpm Wrote: /home/iurt/rpmbuild/RPMS/noarch/mingw64-cximage-debuginfo-600-17.mga8.noarch.rpm Wrote: /home/iurt/rpmbuild/RPMS/noarch/mingw32-cximage-debuginfo-600-17.mga8.noarch.rpm Wrote: /home/iurt/rpmbuild/RPMS/noarch/mingw64-cximage-static-600-17.mga8.noarch.rpm Wrote: /home/iurt/rpmbuild/RPMS/noarch/mingw32-cximage-static-600-17.mga8.noarch.rpm Executing(%clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.vDy8S5 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd mingw-cximage-600 + /usr/bin/rm -rf /home/iurt/rpmbuild/BUILDROOT/mingw-cximage-600-17.mga8.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(--clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.wBt9H5 + umask 022 + cd /home/iurt/rpmbuild/BUILD + rm -rf mingw-cximage-600 + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!