New Ghostscript/GhostPDL compiler warnings - 2019-05-10-05:45:08 - 3db10c55b3ef621770bf6e93dfc1605e766adef2
[email protected] Fri, 10 May 2019 08:42:16 -0700 (PDT)
| Newsgroups | gmane.comp.printing.ghostscript.regression |
|---|---|
| Message-ID | <20190510154216.DB12E2040522@i7> |
Previous Revision: d2809b15153eedbbe1bfb43fc259bf674e353f42 Current Revision: 3db10c55b3ef621770bf6e93dfc1605e766adef2 commit 3db10c55b3ef621770bf6e93dfc1605e766adef2 Author: Chris Liddell <[email protected]> AuthorDate: Fri May 10 09:32:26 2019 +0100 CommitDate: Fri May 10 09:32:26 2019 +0100 Improve test for PS resources in romfs Previously, although we always built a romfs, building gs with COMPILE_INITS=0 meant we included a romfs which was devoid of content, and an attempt to find the status of the device would return 'gs_error_unregistered'. We used this to determine whether to automatically add '%rom%Resource/Init' to the default search path. In the gpdl case (for the sake of PCL and XPS), we always have a usable romfs (even with COMPILE_INITS=0) for the ICC profiles, so the above test gave a false positive: gs would add the romfs to the search path, despite there being no usable Postscript resources in it. So, revise the test to explicitly check for Resource/Init/gs_init.ps on the romfs. If the romfs is, indeed, empty, it will still return 'gs_error_unregistered', but in the gpdl case, it will return 'gs_error_undefinedfilename', and we correctly skip adding the romfs path to the search paths for Postscript resources psi/imain.c Ghostscript: new cppcheck warnings (Cppcheck 1.72): psi/imain.c:1161: error: Memory pointed to by 'tempnames' is freed twice. psi/imain.c:1143: error: Memory pointed to by 'tempnames' is freed twice. http://miles.ghostscript.com:8080/artifex/3db10c55b3ef621770bf6e93dfc1605e766adef2/gs-cppcheck.txt