File 0001-build-fix-return-of-random-data.patch of Package libraw.15685

From: Jan Engelhardt <jengelh@inai.de>
Date: Tue, 11 Jun 2013 15:02:28 +0200
Subject: [PATCH] build: fix return of random data
X-Upstream: submission has not occurred yet

!@#$

[   11s] internal/./wf_filtering.cpp: In member function 'int LibRaw::wf_remove_banding()':
[   11s] internal/./wf_filtering.cpp:686:1: warning: control reaches end of non-void function [-Wreturn-type]
[   39s] I: Program returns random data in a function
[   39s] E: libraw no-return-in-nonvoid-function internal/./wf_filtering.cpp:686
---
 internal/wf_filtering.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/internal/wf_filtering.cpp b/internal/wf_filtering.cpp
index a54ced4..b383b1e 100644
--- a/internal/wf_filtering.cpp
+++ b/internal/wf_filtering.cpp
@@ -683,6 +683,7 @@ int LibRaw::wf_remove_banding()
 
 	free(dummy_line);
 	
+	return WF_DEBANDING_OK;
 }
 
 double LibRaw::wf_filter_energy(int r1_greenmode, int r1, int r2_greenmode, int r2)
-- 
1.8.2
openSUSE Build Service is sponsored by