Fix more MSVC Win32 compiler warnings.

* src/base/ftobjs.c: Fix typo in MS pragma.

* src/base/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
`lineno' is only used in debug mode.

* src/cff/cf2ft.c (cf2_builder_moveTo): `params' is only used in
debug mode.
This commit is contained in:
Dave Arnold 2013-06-05 19:57:55 +02:00 committed by Werner Lemberg
parent 9ef0bc005c
commit c378249e58
4 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,15 @@
2013-06-05 Dave Arnold <darnold@adobe.com>
Fix more MSVC Win32 compiler warnings.
* src/base/ftobjs.c: Fix typo in MS pragma.
* src/base/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
`lineno' is only used in debug mode.
* src/cff/cf2ft.c (cf2_builder_moveTo): `params' is only used in
debug mode.
2013-06-05 Werner Lemberg <wl@gnu.org>
Fix compiler warnings.

View File

@ -60,7 +60,7 @@
#undef free
#if defined( _MSC_VER )
#pragma warning( enable : 4244 )
#pragma warning( default : 4244 )
#endif
#endif /* FT_DEBUG_LEVEL_TRACE */

View File

@ -1170,6 +1170,8 @@
FT_Memory memory;
FT_Error error = FT_Err_Ok;
FT_UNUSED( lineno ); /* only used in debug mode */
if ( font == 0 || font->name == 0 || font->name[0] == 0 )
{
@ -1303,6 +1305,8 @@
FT_Memory memory = font->memory;
FT_Error error = FT_Err_Ok;
FT_UNUSED( lineno ); /* only used in debug mode */
/* First, check whether the property already exists in the font. */
if ( ( hn = hash_lookup( name, (hashtable *)font->internal ) ) != 0 )

View File

@ -122,6 +122,8 @@
CF2_Outline outline = (CF2_Outline)callbacks;
CFF_Builder* builder;
(void)params; /* only used in debug mode */
FT_ASSERT( outline && outline->decoder );
FT_ASSERT( params->op == CF2_PathOpMoveTo );