Petr Gajdos
178c806f10
* see HISTORY for upstream changelog * refreshed, reduced, extended patches: netpbm-security-code.patch netpbm-security-scripts.patch netpbm-gcc-warnings.patch OBS-URL: https://build.opensuse.org/package/show/graphics/netpbm?expand=0&rev=72
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
Index: netpbm-10.75.1/converter/other/pngx.c
|
|
===================================================================
|
|
--- netpbm-10.75.1.orig/converter/other/pngx.c 2016-08-22 11:03:31.641785020 +0200
|
|
+++ netpbm-10.75.1/converter/other/pngx.c 2016-08-22 17:36:34.165268951 +0200
|
|
@@ -342,6 +342,7 @@ pngx_srgbIntentDesc(pngx_srgbIntent cons
|
|
case PNGX_ABSOLUTE_COLORIMETRIC: return "ABSOLUTE_COLORIMETRIC";
|
|
}
|
|
assert(false);
|
|
+ return NULL;
|
|
}
|
|
|
|
|
|
@@ -357,6 +358,7 @@ const libpngSrgbIntentCode(pngx_srgbInte
|
|
}
|
|
|
|
assert(false); /* All cases above return */
|
|
+ return -1;
|
|
}
|
|
|
|
|
|
Index: netpbm-10.75.1/editor/pbmreduce.c
|
|
===================================================================
|
|
--- netpbm-10.75.1.orig/editor/pbmreduce.c 2016-08-22 17:36:34.141268538 +0200
|
|
+++ netpbm-10.75.1/editor/pbmreduce.c 2016-08-22 17:37:35.838325686 +0200
|
|
@@ -202,6 +202,9 @@ oppositeDir(enum Direction const arg) {
|
|
case RIGHT_TO_LEFT: return LEFT_TO_RIGHT;
|
|
}
|
|
assert(false); /* All cases handled above */
|
|
+
|
|
+ /* make gcc happy */
|
|
+ return RIGHT_TO_LEFT;
|
|
}
|
|
|
|
|