New Ghostscript/GhostPDL compiler warnings - 2019-05-20-04:30:42 - dc9c23ed944f653e384fd12fbaf6328e8bab8a33

[email protected] Mon, 20 May 2019 06:54:28 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.regression
Message-ID <20190520135429.4840E204062F@i7>
Previous Revision: 85c99aa093d4e26b9f40c0a4eb686a7f5b2b2d64
 Current Revision: dc9c23ed944f653e384fd12fbaf6328e8bab8a33

commit dc9c23ed944f653e384fd12fbaf6328e8bab8a33
Author:     Robin Watts <[email protected]>
AuthorDate: Thu May 16 19:59:58 2019 +0100
CommitDate: Mon May 20 12:21:49 2019 +0100

    PJL GSSET and GSSETSTRING
    
    Add GSSET and GSSETSTRING PCL commands for setting device
    parameters/language parameters from PJL.

pcl/pl/pjparse.c
pcl/pl/plmain.c
pcl/pl/plmain.h



GhostPCL:

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

./pcl/pl/pjparse.c:850:16: warning: implicit declaration of function 'pl_main_set_string_param' [-Wimplicit-function-declaration]
./pcl/pl/pjparse.c:850:41: warning: implicit declaration of function 'pl_main_get_instance' [-Wimplicit-function-declaration]
./pcl/pl/pjparse.c:852:16: warning: implicit declaration of function 'pl_main_set_param' [-Wimplicit-function-declaration]

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



new scan-build warnings:

./pcl/pl/pjparse.c:837:27: warning: Null pointer passed as an argument to a 'nonnull' parameter
    int len2 = NULL ? 0 : strlen(token)+1;
                          ^~~~~~~~~~~~~

./pcl/pl/pjparse.c:850:16: warning: implicit declaration of function 'pl_main_set_string_param' [-Wimplicit-function-declaration]
         code = pl_main_set_string_param(pl_main_get_instance(pst->mem), buffer);
                ^

./pcl/pl/pjparse.c:850:41: warning: implicit declaration of function 'pl_main_get_instance' [-Wimplicit-function-declaration]
         code = pl_main_set_string_param(pl_main_get_instance(pst->mem), buffer);
                                         ^

./pcl/pl/pjparse.c:852:16: warning: implicit declaration of function 'pl_main_set_param' [-Wimplicit-function-declaration]
         code = pl_main_set_param(pl_main_get_instance(pst->mem), buffer);
                ^


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

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