Tags:
tag this topic
create new tag
view all tags
---+ Release Build Warnings Article text. -- %USERSIG{JulianSmith - 2020-03-03}% Possible fixes for release build warnings: <literal> <pre> ./openjpeg/src/lib/openjp2/dwt.c:596:5: warning: "__AVX2__" is not defined, evaluates to 0 [-Wundef] s/#if __AVX2__/#ifdef __AVX2__ ./openjpeg/src/lib/openjp2/j2k.c:6450:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes] s/static int opj_j2k_get_default_thread_count()/static int opj_j2k_get_default_thread_count(void) ./tiff//libtiff/tif_open.c:104:5: warning: variable ‘n’ set but not used [-Wunused-but-set-variable] put inside #ifndef NDEBUG ./freetype/src/autofit/afcjk.c:780:3: warning: no previous prototype for ‘af_cjk_get_standard_widths’ [-Wmissing-prototypes] ./freetype/src/autofit/aflatin.c:1514:3: warning: no previous prototype for ‘af_latin_get_standard_widths’ [-Wmissing-prototypes] s/FT_LOCAL_DEF( void )/static void ./base/gsicc_cache.c:1526:17: warning: ‘pname’ may be used uninitialized in this function [-Wmaybe-uninitialized] it's safe, but could explicitly set pname=NULL. ./devices/vector/gdevpdfr.c:328:32: warning: array subscript -1 is below array bounds of ‘byte[50]’ {aka ‘unsigned char[50]’} [-Warray-bounds] ./base/spsdf.c:102:32: warning: array subscript -1 is below array bounds of ‘byte[100]’ {aka ‘unsigned char[100]’} [-Warray-bounds] ./base/stream.c:162:65: warning: array subscript -1 is below array bounds of ‘byte[50]’ {aka ‘unsigned char[50]’} [-Warray-bounds] s/w.ptr = buf; w.ptr--;/w.ptr = buf;/ s/r.limit = end - 1;/r.limit = end/ and in s_PSSD_process() do: s/*++q = c;/*q++ = c; ./cups/gdevcups.c:3121:25: warning: variable ‘name_requested_matched’ set but not used [-Wunused-but-set-variable] #ifdef CUPS_DEBUG + #else + (void) name_requested_matched; + #endif ./base/gdevmrun.c:554:31: warning: ‘rpn’ may be used uninitialized in this function [-Wmaybe-uninitialized] ? ./base/gxclbits.c:119:32: warning: array subscript -1 is below array bounds of ‘byte[256]’ {aka ‘unsigned char[256]’} [-Warray-bounds] ./base/gxclbits.c:136:32: warning: array subscript -1 is below array bounds of ‘byte[256]’ {aka ‘unsigned char[256]’} [-Warray-bounds] s/r2.ptr = zeros - 1;/r2.ptr = zeros s/r2.limit = r2.ptr + padding;/r2.limit = r2.ptr + padding + 1; ??? in go_process(): no change? ./psi/iutil.c:407:41: warning: array subscript -1 is below array bounds of ‘char[256]’ [-Warray-bounds] ./psi/iutil.c:410:52: warning: array subscript -1 is below array bounds of ‘char[256]’ [-Warray-bounds] w.ptr = (byte *)buf - 1; w.limit = w.ptr + min(skip + len1, sizeof(buf)); is this ok? if we are comparing .ptr with .limit, then maybe need to use sizeof(buf)+1. ./obj/jcsample.c:483:11: warning: variable ‘smoothok’ set but not used [-Wunused-but-set-variable] jpeg/jcsample.c #ifdef INPUT_SMOOTHING_SUPPORTED if (cinfo->smoothing_factor && !smoothok) TRACEMS(cinfo, 0, JTRC_SMOOTH_NOTIMPL); + #else + (void) smoothok; #endif ./devices/gdevpdfimg.c:633:32: warning: array subscript -1 is below array bounds of ‘byte[100]’ {aka ‘unsigned char[100]’} [-Warray-bounds] s/w.ptr = buf; w.ptr--;/w.ptr = buf; existing code does 'r.limit = r.ptr + size;' which is incompatible with w.ptr = buf; w.ptr--;. </pre> </literal> ---++ Comments %COMMENT%
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2020-03-03
-
JulianSmith
Home
Site map
GSView web
Ghostscript web
Main web
MuPDF web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2014 Artifex Software Inc