changeset 1255:7e5e328454c7

zero size array warning in guifont silenced
author Grumpy7
date Tue, 11 Jun 2013 23:10:30 +0200
parents b9747d9e9b4e
children 8cf1eb87a44e eb1a22f7dfef
files GUIFont.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/GUIFont.h	Tue Jun 11 22:18:20 2013 +0200
+++ b/GUIFont.h	Tue Jun 11 23:10:30 2013 +0200
@@ -12,6 +12,8 @@
 #pragma pack(pop)
 
 /*  170 */
+#pragma warning( push )
+#pragma warning( disable : 4200 )
 #pragma pack(push, 1)
 struct GUIFont
 {
@@ -43,8 +45,10 @@
   GUICharMetric pMetrics[256];
   int font_pixels_offset[256];
   unsigned char pFontData[0]; //array of font pixels
+
 };
 #pragma pack(pop)
+#pragma warning( pop )
 
 GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...);
 char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, signed int uX, int a5);