New Ghostscript/GhostPDL compiler warnings - 2017-12-13-14:00:08 - b5189a84ddf0ca1454b10bb4a9926cd4f8c4f0eb

[email protected]
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20171213234734.D8FA82040602@i7>
Previous Revision: 0bdb35346b5a9636bc6c1ca629401ba21232d9bb
 Current Revision: b5189a84ddf0ca1454b10bb4a9926cd4f8c4f0eb

commit b5189a84ddf0ca1454b10bb4a9926cd4f8c4f0eb
Author:     Robin Watts <[email protected]>
AuthorDate: Mon Dec 11 19:52:43 2017 +0000
CommitDate: Wed Dec 13 11:23:08 2017 +0000

    Add PWGDecode filter.
    
    And lib/viewpwg.ps to use it.

Makefile.in
base/lib.mak
base/spwgd.c
base/spwgx.h
base/unix-gcc.mak
lib/viewpwg.ps
psi/int.mak
psi/msvc.mak
psi/zfilter.c
windows/ghostscript.vcproj



Ghostscript:

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

./psi/zfilter.c:138:53: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
        if ((code = dict_int_param(dop, "Width", 1, max_int, PWG_default_width, width)) < 0)
                                                    ^~~~~~~
./base/std.h:66:19: note: expanded from macro 'max_int'
#define max_int (~min_int)
                  ^~~~~~~
./base/std.h:65:21: note: expanded from macro 'min_int'
#define min_int (-1 << (ARCH_SIZEOF_INT * 8 - 1))
                 ~~ ^


http://miles.ghostscript.com:8080/artifex/b5189a84ddf0ca1454b10bb4a9926cd4f8c4f0eb/gs-clang-warnings.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.