Description of problem:
When compiling the latest development version of darktable (from the
git repo at https://github.com/darktable-org/darktable), the Fedora
22 version of gcc 5.1.1 errors out with an apparently spurious error:
/data/code/git/darktable/src/common/interpolation.c: In function ‘dt_interpolation_compute_sample’:
/data/code/git/darktable/src/common/interpolation.c:789:21: error: array subscript is above array bounds [-Werror=array-bounds]
h += kernelh[j] * ipixel;
cc1: all warnings being treated as errors
src/CMakeFiles/lib_darktable.dir/build.make:829: recipe for target 'src/CMakeFiles/lib_darktable.dir/common/interpolation.c.o' failed
At the moment the specific line of source code producing this is:
As far as I can see, this warning is spurious and inaccurate. It did not
trigger in the Fedora 21 gcc 4.9.2, and clang produces no warnings here.
The darktable developers have pointed me at the following upstream
gcc issues as potentially relevant:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
sudo dnf builddep darktable
git clone https://github.com/darktable-org/darktable
git checkout b2219b57bd2bbb56c28db390f3eec9eb2b4dad1e
./build.sh -j 1
(The git checkout is optional; it is the current git tip, which I
know reproduces this.)
The above error is produced.
Darktable is compiled successfully (in /tmp/scr/darktable/build).
This bug also affects me (Fedora 22).
Is this bug still present with latest F23 GCC?
I just (re)checked and this bug is now gone on Fedora 23.
Thanks! Thus closing as fixed.