New Ghostscript/GhostPDL compiler warnings - 2018-02-02-13:00:05 - 154f27478bdf5b27858a9f446433d5b62febb89d

[email protected] Fri, 2 Feb 2018 14:42:43 -0800 (PST)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20180202224243.B19FD204060A@i7>
Previous Revision: 84370aa9d391c37eccd467760c471e99e355a8ec
 Current Revision: 154f27478bdf5b27858a9f446433d5b62febb89d

commit 154f27478bdf5b27858a9f446433d5b62febb89d
Author:     Ken Sharp <[email protected]>
AuthorDate: Fri Feb 2 11:55:05 2018 +0000
CommitDate: Fri Feb 2 11:55:05 2018 +0000

    remove some unused code - scanbuild warnings....

base/gsdevice.c



Ghostscript:

new gcc warnings (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609): 

./base/gsdevice.c:350:28: warning: unused variable 'procs' [-Wunused-variable]

http://miles.ghostscript.com:8080/artifex/154f27478bdf5b27858a9f446433d5b62febb89d/gs-gcc-warnings.txt



new clang warnings (clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)): 

./base/gsdevice.c:350:28: warning: unused variable 'procs' [-Wunused-variable]
    const gx_device_procs *procs = dev->static_procs;
                           ^


http://miles.ghostscript.com:8080/artifex/154f27478bdf5b27858a9f446433d5b62febb89d/gs-clang-warnings.txt



new scan-build warnings:

./base/gsdevice.c:350:28: warning: Value stored to 'procs' during its initialization is never read
    const gx_device_procs *procs = dev->static_procs;
                           ^~~~~   ~~~~~~~~~~~~~~~~~

./base/gsdevice.c:350:28: warning: unused variable 'procs' [-Wunused-variable]
     const gx_device_procs *procs = dev->static_procs;
                            ^


http://miles.ghostscript.com:8080/artifex/154f27478bdf5b27858a9f446433d5b62febb89d/gs/index.html

http://miles.ghostscript.com:8080/artifex/154f27478bdf5b27858a9f446433d5b62febb89d/gs-scan-build.txt




GhostPCL:

new gcc warnings (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609): 

./base/gsdevice.c:350:28: warning: unused variable 'procs' [-Wunused-variable]

http://miles.ghostscript.com:8080/artifex/154f27478bdf5b27858a9f446433d5b62febb89d/pcl-gcc-warnings.txt



new scan-build warnings:

./base/gsdevice.c:350:28: warning: Value stored to 'procs' during its initialization is never read
    const gx_device_procs *procs = dev->static_procs;
                           ^~~~~   ~~~~~~~~~~~~~~~~~

./base/gsdevice.c:350:28: warning: unused variable 'procs' [-Wunused-variable]
     const gx_device_procs *procs = dev->static_procs;
                            ^


http://miles.ghostscript.com:8080/artifex/154f27478bdf5b27858a9f446433d5b62febb89d/pcl/index.html

http://miles.ghostscript.com:8080/artifex/154f27478bdf5b27858a9f446433d5b62febb89d/pcl-scan-build.txt