New Ghostscript/GhostPDL compiler warnings - 2018-08-10-11:45:01 - df188f54f3e3eed5f12b921440ac7d29970aba35
[email protected] Fri, 10 Aug 2018 13:18:31 -0700 (PDT)
| Newsgroups | gmane.comp.printing.ghostscript.regression |
|---|---|
| Message-ID | <20180810201831.2635E2040278@i7> |
Previous Revision: 428c05bf7168df79721f9bf3c574ccd9e1294e7e Current Revision: df188f54f3e3eed5f12b921440ac7d29970aba35 commit df188f54f3e3eed5f12b921440ac7d29970aba35 Author: Nancy Durgin <[email protected]> AuthorDate: Thu Aug 9 07:56:51 2018 -0700 CommitDate: Thu Aug 9 11:00:34 2018 -0700 Bug 690131: Add epo subclass device to do erasepage optimization. This optimization only works for devices that have a fillpage implementation that is "gx_default_fillpage". For other devices the subclass device will not be installed. If the device transitions to clist (or any other non-gx_default_fillpage device), we will stop doing the optimization. The optimization basically swallows(defers) all fillpages, remembering the color (which is probably always white, but it will work with any "pure" color). Then when the first actual marking operation happens, we do a fill_rectangle operation with the remembered color. base/gdevepo.c base/gdevepo.h base/gspaint.c base/lib.mak Ghostscript: new clang warnings (clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)): ./base/gdevepo.c:120:25: warning: shifting a negative signed value is undefined [-Wshift-negative-value] MAX_COORD, MAX_COORD, ^~~~~~~~~ ./base/gdevepo.c:95:20: note: expanded from macro 'MAX_COORD' #define MAX_COORD (max_int_in_fixed - 1000) ^~~~~~~~~~~~~~~~ ./base/gxfixed.h:134:36: note: expanded from macro 'max_int_in_fixed' #define max_int_in_fixed fixed2int(max_fixed) ^~~~~~~~~ ./base/gxfixed.h:31:20: note: expanded from macro 'max_fixed' # define max_fixed max_int ^~~~~~~ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ./base/gxdevice.h:201:69: note: expanded from macro 'std_device_dci_type_body' std_device_dci_alpha_type_body(dtype, pprocs, dname, stype, w, h,\ ^ ./base/gxdevice.h:196:27: note: expanded from macro 'std_device_dci_alpha_type_body' std_device_part2_(w, h, xdpi, ydpi),\ ^ ./base/gxdevice.h:114:11: note: expanded from macro 'std_device_part2_' width, height, 0/*Pad*/, 0/*align*/, 0/*Num planes*/, 0/*TrayOrientation*/,\ ^~~~~ ./base/gdevepo.c:120:25: warning: shifting a negative signed value is undefined [-Wshift-negative-value] MAX_COORD, MAX_COORD, ^~~~~~~~~ ./base/gdevepo.c:95:20: note: expanded from macro 'MAX_COORD' #define MAX_COORD (max_int_in_fixed - 1000) ^~~~~~~~~~~~~~~~ ./base/gxfixed.h:134:36: note: expanded from macro 'max_int_in_fixed' #define max_int_in_fixed fixed2int(max_fixed) ^~~~~~~~~ ./base/gxfixed.h:31:20: note: expanded from macro 'max_fixed' # define max_fixed max_int ^~~~~~~ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ./base/gxdevice.h:201:69: note: expanded from macro 'std_device_dci_type_body' std_device_dci_alpha_type_body(dtype, pprocs, dname, stype, w, h,\ ^ ./base/gxdevice.h:196:27: note: expanded from macro 'std_device_dci_alpha_type_body' std_device_part2_(w, h, xdpi, ydpi),\ ^ ./base/gxdevice.h:115:22: note: expanded from macro 'std_device_part2_' { (float)((((width) * 72.0 + 0.5) - 0.5) / (x_dpi))/*MediaSize[0]*/,\ ^~~~~ ./base/gdevepo.c:120:36: warning: shifting a negative signed value is undefined [-Wshift-negative-value] MAX_COORD, MAX_COORD, ^~~~~~~~~ ./base/gdevepo.c:95:20: note: expanded from macro 'MAX_COORD' #define MAX_COORD (max_int_in_fixed - 1000) ^~~~~~~~~~~~~~~~ ./base/gxfixed.h:134:36: note: expanded from macro 'max_int_in_fixed' #define max_int_in_fixed fixed2int(max_fixed) ^~~~~~~~~ ./base/gxfixed.h:31:20: note: expanded from macro 'max_fixed' # define max_fixed max_int ^~~~~~~ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ./base/gxdevice.h:201:72: note: expanded from macro 'std_device_dci_type_body' std_device_dci_alpha_type_body(dtype, pprocs, dname, stype, w, h,\ ^ ./base/gxdevice.h:196:30: note: expanded from macro 'std_device_dci_alpha_type_body' std_device_part2_(w, h, xdpi, ydpi),\ ^ ./base/gxdevice.h:114:18: note: expanded from macro 'std_device_part2_' width, height, 0/*Pad*/, 0/*align*/, 0/*Num planes*/, 0/*TrayOrientation*/,\ ^~~~~~ ./base/gdevepo.c:120:36: warning: shifting a negative signed value is undefined [-Wshift-negative-value] MAX_COORD, MAX_COORD, ^~~~~~~~~ ./base/gdevepo.c:95:20: note: expanded from macro 'MAX_COORD' #define MAX_COORD (max_int_in_fixed - 1000) ^~~~~~~~~~~~~~~~ ./base/gxfixed.h:134:36: note: expanded from macro 'max_int_in_fixed' #define max_int_in_fixed fixed2int(max_fixed) ^~~~~~~~~ ./base/gxfixed.h:31:20: note: expanded from macro 'max_fixed' # define max_fixed max_int ^~~~~~~ note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) ./base/gxdevice.h:201:72: note: expanded from macro 'std_device_dci_type_body' std_device_dci_alpha_type_body(dtype, pprocs, dname, stype, w, h,\ ^ ./base/gxdevice.h:196:30: note: expanded from macro 'std_device_dci_alpha_type_body' std_device_part2_(w, h, xdpi, ydpi),\ ^ ./base/gxdevice.h:116:22: note: expanded from macro 'std_device_part2_' (float)((((height) * 72.0 + 0.5) - 0.5) / (y_dpi))/*MediaSize[1]*/},\ ^~~~~~ http://miles.ghostscript.com:8080/artifex/df188f54f3e3eed5f12b921440ac7d29970aba35/gs-clang-warnings.txt