46 lines
1.2 KiB
Diff
46 lines
1.2 KiB
Diff
Index: netpbm-11.7.0/converter/other/pngx.c
|
|
===================================================================
|
|
--- netpbm-11.7.0.orig/converter/other/pngx.c
|
|
+++ netpbm-11.7.0/converter/other/pngx.c
|
|
@@ -370,6 +370,7 @@ pngx_srgbIntentDesc(pngx_srgbIntent cons
|
|
case PNGX_ABSOLUTE_COLORIMETRIC: return "ABSOLUTE_COLORIMETRIC";
|
|
}
|
|
assert(false);
|
|
+ return NULL;
|
|
}
|
|
|
|
|
|
@@ -385,6 +386,7 @@ const libpngSrgbIntentCode(pngx_srgbInte
|
|
}
|
|
|
|
assert(false); /* All cases above return */
|
|
+ return -1;
|
|
}
|
|
|
|
|
|
Index: netpbm-11.7.0/lib/libpm.c
|
|
===================================================================
|
|
--- netpbm-11.7.0.orig/lib/libpm.c
|
|
+++ netpbm-11.7.0/lib/libpm.c
|
|
@@ -440,6 +440,7 @@ pm_maxvaltobits(int const maxval) {
|
|
pm_error("maxval of %d is too large!", maxval);
|
|
|
|
assert(false);
|
|
+ return 0;
|
|
}
|
|
|
|
|
|
Index: netpbm-11.7.0/lib/libpnm3.c
|
|
===================================================================
|
|
--- netpbm-11.7.0.orig/lib/libpnm3.c
|
|
+++ netpbm-11.7.0/lib/libpnm3.c
|
|
@@ -446,6 +446,8 @@ pnm_bittoxel(bit const inputBit,
|
|
case PBM_WHITE: return pnm_whitexel(maxval, PBM_TYPE); break;
|
|
default:
|
|
assert(false);
|
|
+ pixel const black = {0, 0, 0};
|
|
+ return black;
|
|
}
|
|
}
|
|
|