shithub: freetype+ttf2subf

Download patch

ref: 25b6e600c17a647f5bc54658a6862819600fa37e
parent: c06889eb2c42b40d9ef557b03c9b57d6057e0f12
author: Werner Lemberg <[email protected]>
date: Wed Jun 12 07:06:34 EDT 2013

* include/freetype/internal/ftdebug.h: Disable MSVC warning C4127.

This partially undoes commit 3f6e0e0c.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-06-12  Werner Lemberg  <[email protected]>.
+
+	* include/freetype/internal/ftdebug.h: Disable MSVC warning C4127.
+
+	This partially undoes commit 3f6e0e0c.
+
 2013-06-12  Werner Lemberg  <[email protected]>
 
 	More compiler warning fixes.
--- a/include/freetype/internal/ftdebug.h
+++ b/include/freetype/internal/ftdebug.h
@@ -248,6 +248,18 @@
   ft_debug_init( void );
 
 
+#if defined( _MSC_VER )      /* Visual C++ (and Intel C++) */
+
+  /* We disable the warning `conditional expression is constant' here */
+  /* in order to compile cleanly with the maximum level of warnings.  */
+  /* In particular, the warning complains about stuff like `while(0)' */
+  /* which is very useful in macro definitions.  There is no benefit  */
+  /* in having it enabled.                                            */
+#pragma warning( disable : 4127 )
+
+#endif /* _MSC_VER */
+
+
 FT_END_HEADER
 
 #endif /* __FTDEBUG_H__ */