diff options
author | Jjgod Jiang <gzjjgod@gmail.com> | 2014-08-04 21:56:36 +0000 |
---|---|---|
committer | Jjgod Jiang <gzjjgod@gmail.com> | 2014-08-04 21:56:36 +0000 |
commit | 74f38ed6a0ef898bb6a188e4d89bb85bb4ac7ebe (patch) | |
tree | 7d58c7aeee2d1a991e48365d2e95224db28b70d6 /Build/source/texk/dvipdfm-x/spc_dvips.c | |
parent | 40cde69d904eb89fe89fcd7bc4b7d458d113fe6d (diff) |
Fix some warnings and remove unused code
git-svn-id: svn://tug.org/texlive/trunk@34837 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/spc_dvips.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/spc_dvips.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Build/source/texk/dvipdfm-x/spc_dvips.c b/Build/source/texk/dvipdfm-x/spc_dvips.c index 670ce0e2c27..b21b302783e 100644 --- a/Build/source/texk/dvipdfm-x/spc_dvips.c +++ b/Build/source/texk/dvipdfm-x/spc_dvips.c @@ -438,7 +438,7 @@ spc_handler_ps_tricks_brotate (struct spc_env *spe, struct spc_arg *args) char *cmd, *RotBegin; int i, l = args->endptr - args->curptr; - static const char *pre = "tx@Dict begin /RAngle { %f } def\n"; + static const char pre[] = "tx@Dict begin /RAngle { %f } def\n"; static const char *post = "= end"; if (!(++RAngleCount & 0x0f)) @@ -526,13 +526,11 @@ check_next_obj(const unsigned char * buffer) } static int -spc_handler_ps_tricks_parse_path (struct spc_env *spe, struct spc_arg *args, - int flag) +spc_handler_ps_tricks_parse_path (struct spc_env *spe, struct spc_arg *args) { FILE* fp; int k; pdf_tmatrix M; - char *distiller_template = get_distiller_template(); char *gs_out; const char *clip; int error; @@ -658,7 +656,6 @@ spc_handler_ps_tricks_render (struct spc_env *spe, struct spc_arg *args) if (check_next_obj((const unsigned char*)args->endptr)) { fclose(fp); } else { - char *distiller_template = get_distiller_template(); char *gs_out; int error, form_id; transform_info p; @@ -786,7 +783,7 @@ spc_handler_ps_trickscmd (struct spc_env *spe, struct spc_arg *args) if (f_exec & render) error |= spc_handler_ps_tricks_render(spe, args); if (f_exec & parse) - error |= spc_handler_ps_tricks_parse_path(spe, args, f_exec); + error |= spc_handler_ps_tricks_parse_path(spe, args); if (f_exec & begin_put) error |= spc_handler_ps_tricks_bput(spe, args, (f_exec & add_temp), (f_exec & req_ref)); if (f_exec & end_put) |