libraw/retval.diff

27 lines
837 B
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2015-11-13 17:24:03.127632735 +0100
rpmlint says:
I: Program returns random data in a function
E: libraw no-return-in-nonvoid-function internal/dcraw_common.cpp:1710
gcc:
internal/dcraw_common.cpp: In member function 'int LibRaw::phase_one_correct()':
internal/dcraw_common.cpp:1710:1: warning: control reaches end of non-void function [-Wreturn-type]
---
internal/dcraw_common.cpp | 1 +
1 file changed, 1 insertion(+)
Index: LibRaw-0.17.0/internal/dcraw_common.cpp
===================================================================
--- LibRaw-0.17.0.orig/internal/dcraw_common.cpp
+++ LibRaw-0.17.0/internal/dcraw_common.cpp
@@ -1707,6 +1707,7 @@ int CLASS phase_one_correct()
return LIBRAW_CANCELLED_BY_CALLBACK;
}
#endif
+ return 0;
}
void CLASS phase_one_load_raw()