From 2924a02a3561eed7899d5087f2a7a6c31529e18f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 1 Sep 2013 00:46:04 +0000 Subject: move strict compiler checks into a header so its easier to manage in one place (pragmas were copied around). also enable more strict warnings for BLF (which had some incorrect casts). --- source/blender/blenfont/intern/blf_internal_types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/blenfont/intern/blf_internal_types.h') diff --git a/source/blender/blenfont/intern/blf_internal_types.h b/source/blender/blenfont/intern/blf_internal_types.h index 096ff50a3ca..c64b7e974e7 100644 --- a/source/blender/blenfont/intern/blf_internal_types.h +++ b/source/blender/blenfont/intern/blf_internal_types.h @@ -54,7 +54,7 @@ typedef struct GlyphCacheBLF { unsigned int ntex; /* and the last texture, aka. the current texture. */ - int cur_tex; + unsigned int cur_tex; /* like bftgl, we draw every glyph in a big texture, so this is the * current position inside the texture. @@ -235,4 +235,6 @@ typedef struct DirBLF { char *path; } DirBLF; +#define BLF_CURTEX_UNSET ((unsigned int)-1) + #endif /* __BLF_INTERNAL_TYPES_H__ */ -- cgit v1.2.3