Age | Commit message (Collapse) | Author | Files | Lines |
|
This adds new command line arguments -papertype, -pheight, and -pwidth
Originally implemented by Jay Hobson in August 2002 to fix
Sun bug 4704388: xpr does not work with A3 paper
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
These are not needed in C89 and later.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Fixes gcc 7.3 warnings:
x2jet.c: In function ‘validate_visual’:
x2jet.c:1057:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (depth > 8) invalid_depth_for_visual(depth, "GrayScale"); break;
^~
x2jet.c:1057:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (depth > 8) invalid_depth_for_visual(depth, "GrayScale"); break;
^~~~~
x2jet.c:1059:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (depth > 8) invalid_depth_for_visual(depth, "StaticGray"); break;
^~
x2jet.c:1059:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (depth > 8) invalid_depth_for_visual(depth, "StaticGray"); break;
^~~~~
x2jet.c:1061:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (depth > 8) invalid_depth_for_visual(depth, "PseudoColor"); break;
^~
x2jet.c:1061:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (depth > 8) invalid_depth_for_visual(depth, "PseudoColor"); break;
^~~~~
x2jet.c:1063:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (depth > 8) invalid_depth_for_visual(depth, "StaticColor"); break;
^~
x2jet.c:1063:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (depth > 8) invalid_depth_for_visual(depth, "StaticColor"); break;
^~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
x2jet.c:300:6: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘CARD32’
x2jet.c:300:6: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘CARD32’
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Clears Sun Studio cc warning of:
"x2jet.c", line 1681: warning: constant promoted to unsigned long
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Clears gcc warnings:
x2jet.c: In function `validate_visual':
x2jet.c:1053: warning: format not a string literal, argument types not checked
x2jet.c:1055: warning: format not a string literal, argument types not checked
x2jet.c:1057: warning: format not a string literal, argument types not checked
x2jet.c:1059: warning: format not a string literal, argument types not checked
x2jet.c:1064: warning: format not a string literal, argument types not checked
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Adds dependency on x11proto 7.0.17 to get the definition of _X_NORETURN
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Remaining warnings are due to bit/shift operations mixed with
addition/multiplication/etc. "1<<2-1" should be read as
"1 << (2 - 1)", and not "(1 << 2) - 1". The first 2 warnings
appear to be for a confusing case, as a few lines bellow
it is adding parenthesis to the shift operation, but should be
being parsed correctly (not added parenthesis to avoid the
adding them wrong, and "hiding" the warning...)
|
|
//freedesktop.org/bugzilla/show_bug.cgi?id=1795): Fix build bustage caused
by bug 1779, patch by Bernhard Rosenkraenzer <bero@arklinux.org>.
|
|
xc/programs/xpr/x2pmp.c
xc/programs/xpr/xpr.c
Fix various warnings, build problems in "xpr" and convert the whole source
from K&R style to ANSI-C.
|
|
"xpr" and "pclcomp" as they are needed for the RASTER and PCL drivers
on some platforms.
|