diff options
-rw-r--r-- | source/blender/blenfont/intern/Makefile | 1 | ||||
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/blenfont/intern/Makefile b/source/blender/blenfont/intern/Makefile index 38e76d03cad..77e87c27a02 100644 --- a/source/blender/blenfont/intern/Makefile +++ b/source/blender/blenfont/intern/Makefile @@ -32,6 +32,7 @@ DIR = $(OCGDIR)/blender/blenfont include nan_compile.mk CFLAGS += $(LEVEL_1_C_WARNINGS) +#CFLAGS += -O2 -Wall -Wno-char-subscripts # OpenGL and Freetype2 CPPFLAGS += -I$(NAN_GLEW)/include diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index 1d227e271dd..f6b7c5f71e6 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -363,9 +363,6 @@ void BLF_blur(int fontid, int size) void BLF_draw_default(float x, float y, float z, char *str) { - FontBLF *font; - int old_font=0, old_point=0, old_dpi=0; - if (!str) return; @@ -460,9 +457,7 @@ float BLF_fixed_width(int fontid) float BLF_width_default(char *str) { - FontBLF *font; float width; - int old_font=0, old_point=0, old_dpi=0; if (global_font_default == -1) global_font_default= blf_search("default"); @@ -474,7 +469,6 @@ float BLF_width_default(char *str) BLF_size(global_font_default, global_font_points, global_font_dpi); width= BLF_width(global_font_default, str); - return(width); } @@ -490,9 +484,7 @@ float BLF_height(int fontid, char *str) float BLF_height_default(char *str) { - FontBLF *font; float height; - int old_font=0, old_point=0, old_dpi=0; if (global_font_default == -1) global_font_default= blf_search("default"); @@ -504,7 +496,6 @@ float BLF_height_default(char *str) BLF_size(global_font_default, global_font_points, global_font_dpi); height= BLF_height(global_font_default, str); - return(height); } |