New Ghostscript/GhostPDL compiler warnings - 2018-01-10-04:32:17 - 151cb32d94b5790fae44f48763e19c519ac742cb

[email protected] Wed, 10 Jan 2018 06:15:56 -0800 (PST)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20180110141556.E758D2040253@i7>
Previous Revision: 3927036c14c12857be7dbf98dc777631a365977e
 Current Revision: 151cb32d94b5790fae44f48763e19c519ac742cb

commit 151cb32d94b5790fae44f48763e19c519ac742cb
Author:     Robin Watts <[email protected]>
AuthorDate: Mon Jan 8 19:10:01 2018 +0000
CommitDate: Wed Jan 10 12:25:54 2018 +0000

    Miscellaneous fixes to roprun code.
    
    Fold some more rops down to simpler ones.
    
    Remove some functions that are no longer required. Allow
    for NOP ROPs to short circuit all the work.
    
    Also, fix what looks like a problem in the setup for 1bit ROPs.
    (Doesn't actually seem to have caused a problem but the new
    code is more readable).
    
    Avoid intermixing rop_operand * and gx_color_index *'s.

base/gdevm1.c
base/gdevmr8n.c
base/gsroprun.c
base/gsroprun24.h
base/gsroprun8.h
base/gsropt.h



Ghostscript:

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

./base/gsroprun.c:1725:13: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
./base/gsroprun.c:560:32: warning: 'sort_rop_run24_const_st' defined but not used [-Wunused-function]

http://miles.ghostscript.com:8080/artifex/151cb32d94b5790fae44f48763e19c519ac742cb/gs-gcc-warnings.txt



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

./base/gsroprun.c:1725:13: warning: implicit declaration of function 'abort' is invalid in C99 [-Wimplicit-function-declaration]
            abort(); /* Never happens */
            ^
In file included from ./base/gsroprun.c:565:

./base/gsroprun24.h:88:13: warning: unused function 'sort_rop_run24_const_st' [-Wunused-function]
static void TEMPLATE_NAME(rop_run_op *op, byte *d, int len)
            ^
./base/gsroprun.c:560:32: note: expanded from macro 'TEMPLATE_NAME'
#define TEMPLATE_NAME          sort_rop_run24_const_st
                               ^


http://miles.ghostscript.com:8080/artifex/151cb32d94b5790fae44f48763e19c519ac742cb/gs-clang-warnings.txt



new scan-build warnings:

./base/gsroprun.c:1725:13: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
             abort(); /* Never happens */
             ^

./base/gsroprun.c:560:32: warning: 'sort_rop_run24_const_st' defined but not used [-Wunused-function]
 #define TEMPLATE_NAME          sort_rop_run24_const_st
                                ^


http://miles.ghostscript.com:8080/artifex/151cb32d94b5790fae44f48763e19c519ac742cb/gs/index.html

http://miles.ghostscript.com:8080/artifex/151cb32d94b5790fae44f48763e19c519ac742cb/gs-scan-build.txt




GhostPCL:

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

./base/gsroprun.c:1725:13: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
./base/gsroprun.c:560:32: warning: 'sort_rop_run24_const_st' defined but not used [-Wunused-function]

http://miles.ghostscript.com:8080/artifex/151cb32d94b5790fae44f48763e19c519ac742cb/pcl-gcc-warnings.txt



new scan-build warnings:

./base/gsroprun.c:1725:13: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
             abort(); /* Never happens */
             ^

./base/gsroprun.c:560:32: warning: 'sort_rop_run24_const_st' defined but not used [-Wunused-function]
 #define TEMPLATE_NAME          sort_rop_run24_const_st
                                ^


http://miles.ghostscript.com:8080/artifex/151cb32d94b5790fae44f48763e19c519ac742cb/pcl/index.html

http://miles.ghostscript.com:8080/artifex/151cb32d94b5790fae44f48763e19c519ac742cb/pcl-scan-build.txt