New Ghostscript/GhostPDL compiler warnings - 2017-12-15-03:30:09 - 44d4d979c25eaea76c2d08aceec058f92ee3ed83
[email protected] Fri, 15 Dec 2017 05:05:48 -0800 (PST)
| Newsgroups | gmane.comp.printing.ghostscript.regression |
|---|---|
| Message-ID | <20171215130548.BC25820401D9@i7> |
Previous Revision: 86322b1ccb1e67cf99672945f1d77925b2902872 Current Revision: 44d4d979c25eaea76c2d08aceec058f92ee3ed83 commit 44d4d979c25eaea76c2d08aceec058f92ee3ed83 Author: Ken Sharp <[email protected]> AuthorDate: Fri Dec 15 11:21:49 2017 +0000 CommitDate: Fri Dec 15 11:22:13 2017 +0000 Make pdfimage devices work on Linux Because the devices usurp the FILE * created by the gdevprn code and turn it into a stream, we must set the stored pointer to NULL after closing or freeing the stream in order to avoid gdev_prn_close() attempting to close the underlying file again, which causes an error on Linux. Also remove some routines we no longer use. devices/gdevpdfimg.c Ghostscript: new gcc warnings (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609): ./devices/gdevpdfimg.c:678:1: warning: 'pdf_make_instance_uuid' defined but not used [-Wunused-function] ./devices/gdevpdfimg.c:688:1: warning: 'pdf_make_document_uuid' defined but not used [-Wunused-function] http://miles.ghostscript.com:8080/artifex/44d4d979c25eaea76c2d08aceec058f92ee3ed83/gs-gcc-warnings.txt new clang warnings (clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)): ./devices/gdevpdfimg.c:678:1: warning: unused function 'pdf_make_instance_uuid' [-Wunused-function] pdf_make_instance_uuid(const byte digest[6], char *buf, int buf_length) ^ ./devices/gdevpdfimg.c:688:1: warning: unused function 'pdf_make_document_uuid' [-Wunused-function] pdf_make_document_uuid(const byte digest[6], char *buf, int buf_length) ^ http://miles.ghostscript.com:8080/artifex/44d4d979c25eaea76c2d08aceec058f92ee3ed83/gs-clang-warnings.txt new scan-build warnings: ./devices/gdevpdfimg.c:678:1: warning: 'pdf_make_instance_uuid' defined but not used [-Wunused-function] pdf_make_instance_uuid(const byte digest[6], char *buf, int buf_length) ^ ./devices/gdevpdfimg.c:688:1: warning: 'pdf_make_document_uuid' defined but not used [-Wunused-function] pdf_make_document_uuid(const byte digest[6], char *buf, int buf_length) ^ http://miles.ghostscript.com:8080/artifex/44d4d979c25eaea76c2d08aceec058f92ee3ed83/gs/index.html http://miles.ghostscript.com:8080/artifex/44d4d979c25eaea76c2d08aceec058f92ee3ed83/gs-scan-build.txt GhostPCL: new gcc warnings (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609): ./devices/gdevpdfimg.c:678:1: warning: 'pdf_make_instance_uuid' defined but not used [-Wunused-function] ./devices/gdevpdfimg.c:688:1: warning: 'pdf_make_document_uuid' defined but not used [-Wunused-function] http://miles.ghostscript.com:8080/artifex/44d4d979c25eaea76c2d08aceec058f92ee3ed83/pcl-gcc-warnings.txt new scan-build warnings: ./devices/gdevpdfimg.c:678:1: warning: 'pdf_make_instance_uuid' defined but not used [-Wunused-function] pdf_make_instance_uuid(const byte digest[6], char *buf, int buf_length) ^ ./devices/gdevpdfimg.c:688:1: warning: 'pdf_make_document_uuid' defined but not used [-Wunused-function] pdf_make_document_uuid(const byte digest[6], char *buf, int buf_length) ^ http://miles.ghostscript.com:8080/artifex/44d4d979c25eaea76c2d08aceec058f92ee3ed83/pcl/index.html http://miles.ghostscript.com:8080/artifex/44d4d979c25eaea76c2d08aceec058f92ee3ed83/pcl-scan-build.txt