[Debian-med-packaging] Bug#731433: iteration 9396u invokes undefined behavior [-Waggressive-loop-optimizations]

Mathieu Malaterre malat at debian.org
Thu Dec 5 12:57:03 UTC 2013


Package: dcmtk

dcmtk currently compiles with the following warning:

[ 17%] Building C object dcmjpeg/libijg12/CMakeFiles/ijg12.dir/jdmerge.c.o
cd "/«PKGBUILDDIR»/obj-i486-linux-gnu/dcmjpeg/libijg12" && /usr/bin/cc
 -DDCMTK_BUILD_IN_PROGRESS -DUSE_NULL_SAFE_OFSTRING -D_REENTRANT
-Dijg12_EXPORTS -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
-fvisibility=hidden -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L
-fPIC -I/usr/include/i386-linux-gnu -I/usr/include/libxml2
-I"/«PKGBUILDDIR»/obj-i486-linux-gnu/config/include"
-I"/«PKGBUILDDIR»/ofstd/include" -I"/«PKGBUILDDIR»/oflog/include"
-I"/«PKGBUILDDIR»/dcmdata/include" -I"/«PKGBUILDDIR»/dcmimgle/include"
-I"/«PKGBUILDDIR»/dcmimage/include" -I"/«PKGBUILDDIR»/dcmjpeg/libijg8"
-I"/«PKGBUILDDIR»/dcmjpeg/libijg12"
-I"/«PKGBUILDDIR»/dcmjpeg/libijg16" -I"/«PKGBUILDDIR»/dcmjpeg/include"
-I"/«PKGBUILDDIR»/dcmjpls/include" -I"/«PKGBUILDDIR»/dcmnet/include"
-I"/«PKGBUILDDIR»/dcmpstat/include" -I"/«PKGBUILDDIR»/dcmqrdb/include"
-I"/«PKGBUILDDIR»/dcmsign/include" -I"/«PKGBUILDDIR»/dcmsr/include"
-I"/«PKGBUILDDIR»/dcmtls/include" -I"/«PKGBUILDDIR»/dcmwlm/include"
-DDCMTK_BUILD_DATE=\"2013-11-14\" -o CMakeFiles/ijg12.dir/jdmerge.c.o
 -c "/«PKGBUILDDIR»/dcmjpeg/libijg12/jdmerge.c"
In file included from /«PKGBUILDDIR»/dcmjpeg/libijg16/jpeglib16.h:1204:0,
                 from /«PKGBUILDDIR»/dcmjpeg/libijg16/jdmerge.c:37:
/«PKGBUILDDIR»/dcmjpeg/libijg16/jdmerge.c: In function
'jinit16_merged_upsampler':
/«PKGBUILDDIR»/dcmjpeg/libijg16/jdmerge.c:108:32: warning: iteration
9396u invokes undefined behavior [-Waggressive-loop-optimizations]
       RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);
                                ^
/«PKGBUILDDIR»/dcmjpeg/libijg16/jpegint16.h:252:31: note: in
definition of macro 'RIGHT_SHIFT'
 #define RIGHT_SHIFT(x,shft) ((x) >> (shft))
                               ^
/«PKGBUILDDIR»/dcmjpeg/libijg16/jdmerge.c:103:3: note: containing loop
   for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) {
   ^
/usr/bin/cmake -E cmake_progress_report
"/«PKGBUILDDIR»/obj-i486-linux-gnu/CMakeFiles"



More information about the Debian-med-packaging mailing list