While building the latest DT sources from git on Fedora 22 I got this error:
/software/darktable-orig/src/common/interpolation.c: In function
‘dt_interpolation_compute_sample’:
/software/darktable-orig/src/common/interpolation.c:789:21: error: array
subscript is above array bounds [-Werror=array-bounds]
h += kernelh[j] * ipixel[0];
To fix this I created a patch to disable compiler warnings about array bounds:
--- ./src/CMakeLists.txt.orig 2015-05-13 20:21:03.706279576 -0700
+++ ./src/CMakeLists.txt 2015-05-13 20:21:39.024246687 -0700
@@ -111,7 +111,7 @@
# initial compiler flags
add_definitions("-DHAVE_CONFIG_H")
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wno-array-bounds
-Wno-maybe-uninitialized")
# Check for openmp
find_package(OpenMP)
I'm wondering how the official build for Fedora 22 is created?
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Darktable-users mailing list
Darktable-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-users