summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipos/tfm.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-18 14:50:36 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-18 14:50:36 +0000
commit7b0a89166040f4b1d53f19b343ab0bd4431690c8 (patch)
tree18dd7db921f06d95fde0559b2ba2b95a46d14d49 /Build/source/texk/dvipos/tfm.c
parent15df75ba0bf120cae4e19bfc91674ab1a7cd59e0 (diff)
enable compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@13814 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipos/tfm.c')
-rw-r--r--Build/source/texk/dvipos/tfm.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/Build/source/texk/dvipos/tfm.c b/Build/source/texk/dvipos/tfm.c
index 2bf61357f89..4f7d6bb950d 100644
--- a/Build/source/texk/dvipos/tfm.c
+++ b/Build/source/texk/dvipos/tfm.c
@@ -26,6 +26,7 @@
#include "utils.h"
#include "dvicore.h"
+#include "tfm.h"
#define tfm_unsigned_byte() get_unsigned_byte(tfm_file)
#define tfm_signed_byte() get_signed_byte(tfm_file)
@@ -71,7 +72,8 @@ struct a_tfm {
fixword *unpacked_depths;
};
-void a_tfm_init (struct a_tfm *a_tfm)
+static void
+a_tfm_init (struct a_tfm *a_tfm)
{
a_tfm->id = 0;
a_tfm->nt = 0;
@@ -222,6 +224,8 @@ static int ofm_get_sizes (struct a_tfm *a_tfm)
return (int) (level);
}
+#if 0
+/* Not used */
static void dump_sizes (struct a_tfm *a_tfm)
{
fprintf (stderr, "\nwlenfile: %ld, ", a_tfm -> wlenfile);
@@ -238,7 +242,7 @@ static void dump_sizes (struct a_tfm *a_tfm)
fprintf (stderr, "nfonparm: %ld\n", a_tfm -> nfonparm);
return;
}
-
+#endif
static void get_fix_word_array (SIGNED_QUAD *a_word, SIGNED_QUAD length)
{
@@ -516,14 +520,14 @@ int tfm_open (const char *tfm_name, int must_exist)
tfm file with the must_exist flag set.
4. If not found and must_exist flag is not set, return -1. */
- if (file_name = kpse_find_file(tfm_name, kpse_tfm_format, 0))
+ if ((file_name = kpse_find_file(tfm_name, kpse_tfm_format, 0)))
format = TFM_FORMAT;
- else if (file_name = kpse_find_file(tfm_name, kpse_ofm_format, 0))
+ else if ((file_name = kpse_find_file(tfm_name, kpse_ofm_format, 0)))
format = OFM_FORMAT;
/* In case that must_exist is set, MiKTeX returns always non-NULL value
even if the tfm file is not found. */
else if (must_exist) {
- if (file_name = kpse_find_file(tfm_name, kpse_tfm_format, 1))
+ if ((file_name = kpse_find_file(tfm_name, kpse_tfm_format, 1)))
format = TFM_FORMAT;
else {
fprintf(stderr, "\n** Fatal: Unable to find TFM file '%s'.\n", tfm_name);