Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2010-04-22 16:05:19 +0400
committerDiego Borghetti <bdiego@gmail.com>2010-04-22 16:05:19 +0400
commit3c4339ccf77564e9548e41dbc52598ed25c6ab39 (patch)
treea1c38ef6b1f17e8e3390255f868eb415ab3c70cd /source/blender/blenfont
parent9957e926f93d086f024e7cf92b25a7ce2e043861 (diff)
Remove unused var from blenfont.
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r--source/blender/blenfont/intern/Makefile1
-rw-r--r--source/blender/blenfont/intern/blf.c9
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);
}