diff options
author | wl <wl> | 2011-10-31 07:25:18 +0000 |
---|---|---|
committer | wl <wl> | 2011-10-31 07:25:18 +0000 |
commit | 826d0960453913eacb9877d858022b48f605831d (patch) | |
tree | 140352c2b0339b542d0d78e75cac9335baa2b984 /src/preproc/eqn | |
parent | 8d1beed7085ed4e1d2fbaf9fc77c585f38ac97ad (diff) | |
download | groff-826d0960453913eacb9877d858022b48f605831d.tar.gz |
Fix compiler warnings.
* src/preproc/eqn/main.cpp (do_file), src/roff/troff/env.cpp
(environment::print_env), src/roff/troff/mtsm.cpp
(statem::display_state): Add syntactical sugar.
* src/utils/tfmtodit/tfmtodit.cpp (char_info_word): Use `unsigned
char' for all members.
* src/devices/grohtml/html-text.cpp (html_text::remove_def): Remove
unused variable `q'.
* src/devices/grohtml/post-html.cpp
(html_printer::lookahead_for_tables): Remove unused variable `left'
and `seen_text'.
Diffstat (limited to 'src/preproc/eqn')
-rw-r--r-- | src/preproc/eqn/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/preproc/eqn/main.cpp b/src/preproc/eqn/main.cpp index e784c2c5..167fb4e2 100644 --- a/src/preproc/eqn/main.cpp +++ b/src/preproc/eqn/main.cpp @@ -1,6 +1,5 @@ // -*- C++ -*- -/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2005, 2007, - 2009 +/* Copyright (C) 1989-1992, 2000-2002, 2005, 2007, 2009, 2011 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) @@ -112,13 +111,14 @@ void do_file(FILE *fp, const char *filename) inline_flag = 0; yyparse(); restore_compatibility(); - if (non_empty_flag) + if (non_empty_flag) { if (output_format == mathml) putchar('\n'); else { printf(".lf %d\n", current_lineno - 1); output_string(); } + } if (output_format == troff) printf(".lf %d\n", current_lineno); put_string(linebuf, stdout); |