From 9b41efe5379edf34e5f9cb992c97ed57be3bab5d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 12 Apr 2012 16:48:24 +0000 Subject: changes from thanh for two new warning-suppression primitives and unicode glyph-name scanning; import from pdftex git-svn-id: svn://tug.org/texlive/trunk@25938 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/pdftexdir/mapfile.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Build/source/texk/web2c/pdftexdir/mapfile.c') diff --git a/Build/source/texk/web2c/pdftexdir/mapfile.c b/Build/source/texk/web2c/pdftexdir/mapfile.c index 1528f330603..6345c575a04 100644 --- a/Build/source/texk/web2c/pdftexdir/mapfile.c +++ b/Build/source/texk/web2c/pdftexdir/mapfile.c @@ -1,5 +1,5 @@ /* mapfile.c: handling of map files/lines -Copyright 1996-2011 Han The Thanh, +Copyright 1996-2012 Han The Thanh, This file is part of pdfTeX. @@ -179,6 +179,7 @@ int avl_do_entry(fm_entry * fm, int mode) fm_entry *p; void *a; void **aa; + boolean suppress_warn = (getpdfsuppresswarningdupmap() > 0); /* handle tfm_name link */ @@ -187,9 +188,10 @@ int avl_do_entry(fm_entry * fm, int mode) if (p != NULL) { switch (mode) { case FM_DUPIGNORE: - pdftex_warn - ("fontmap entry for `%s' already exists, duplicates ignored", - fm->tfm_name); + if (!suppress_warn) + pdftex_warn + ("fontmap entry for `%s' already exists, duplicates ignored", + fm->tfm_name); goto exit; break; case FM_REPLACE: -- cgit v1.2.3