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:
authorTon Roosendaal <ton@blender.org>2006-01-28 23:17:48 +0300
committerTon Roosendaal <ton@blender.org>2006-01-28 23:17:48 +0300
commit240e25ab652492ad8e0a713b3907aa490b1a70b3 (patch)
tree583502a6fb9983056e0b213605cecc202dfee7e7 /source/blender/src
parent2fbef6f9c9224450f4de567466c5b573dc1ec062 (diff)
Cleanup of blender/ module; Makefiles now compile this warning free.
Mostly was unused variables, unused functions, missing prototypes and missing include files.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/booleanops.c2
-rw-r--r--source/blender/src/drawobject.c2
-rw-r--r--source/blender/src/header_info.c4
-rw-r--r--source/blender/src/interface_icons.c4
-rw-r--r--source/blender/src/parametrizer.c4
-rw-r--r--source/blender/src/renderwin.c4
6 files changed, 9 insertions, 11 deletions
diff --git a/source/blender/src/booleanops.c b/source/blender/src/booleanops.c
index 17850d08aaa..b38600d182b 100644
--- a/source/blender/src/booleanops.c
+++ b/source/blender/src/booleanops.c
@@ -55,6 +55,8 @@
#include "BKE_object.h"
#include "BKE_utildefines.h"
+#include "BIF_toolbox.h"
+
#include <math.h>
// TODO check to see how many of these includes are necessary
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index 8c150afac1e..6b471693eed 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -241,9 +241,7 @@ static float cube[8][3] = {
/* flag is same as for draw_object */
void drawaxes(float size, int flag, char drawtype)
{
- View3D *v3d= G.vd;
int axis;
- float vec[3]= {0.0, 0.0, 0.0};
switch(drawtype) {
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index ce8d21612bd..dfc04c6fe14 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -1202,12 +1202,10 @@ static void do_info_add_groupmenu(void *arg, int event)
static uiBlock *info_add_groupmenu(void *arg_unused)
{
+ Group *group;
uiBlock *block;
short yco= 0;
-
- Group *group;
int a;
- int tot= BLI_countlist(&G.main->group);
block= uiNewBlock(&curarea->uiblocks, "add_groupmenu", UI_EMBOSSP, UI_HELV, G.curscreen->mainwin);
uiBlockSetButmFunc(block, do_info_add_groupmenu, NULL);
diff --git a/source/blender/src/interface_icons.c b/source/blender/src/interface_icons.c
index 35889e3c220..614ebcefbb8 100644
--- a/source/blender/src/interface_icons.c
+++ b/source/blender/src/interface_icons.c
@@ -419,7 +419,7 @@ static void vicon_move_down_draw(int x, int y, int w, int h, float alpha)
/* this only works for the hardcoded buttons image, turning the grey AA pixels to alpha, and slight off-grey to half alpha */
-
+#if 0
static void clear_transp_rect_soft(unsigned char *transp, unsigned char *rect, int w, int h, int rowstride)
{
int x, y, val;
@@ -453,6 +453,7 @@ static void clear_transp_rect_soft(unsigned char *transp, unsigned char *rect, i
}
}
}
+#endif
static void clear_transp_rect(unsigned char *transp, unsigned char *rect, int w, int h, int rowstride)
{
@@ -470,7 +471,6 @@ static void clear_transp_rect(unsigned char *transp, unsigned char *rect, int w,
static void prepare_internal_icons(ImBuf* bbuf)
{
- int x, y;
int rowstride= bbuf->x*4;
char *back= (char *)bbuf->rect;
unsigned char transp[4];
diff --git a/source/blender/src/parametrizer.c b/source/blender/src/parametrizer.c
index 6d8ede47a0f..e007e0b4639 100644
--- a/source/blender/src/parametrizer.c
+++ b/source/blender/src/parametrizer.c
@@ -1127,7 +1127,7 @@ static void p_chart_fill_boundary(PChart *chart, PEdge *be, int nedges)
pheap_delete(heap);
}
-
+#if 0
static void p_chart_fill_boundaries(PChart *chart, PEdge *outer)
{
PEdge *e, *enext, *be;
@@ -1151,7 +1151,7 @@ static void p_chart_fill_boundaries(PChart *chart, PEdge *outer)
p_chart_fill_boundary(chart, e, nedges);
}
}
-
+#endif
static void p_flush_uvs(PChart *chart)
{
PEdge *e;
diff --git a/source/blender/src/renderwin.c b/source/blender/src/renderwin.c
index 921048ff3b0..579dc8b892a 100644
--- a/source/blender/src/renderwin.c
+++ b/source/blender/src/renderwin.c
@@ -958,7 +958,7 @@ static void do_render(int anim)
waitcursor(0); // waitcursor checks rendering R.flag...
}
-
+#if 0
/* used for swapping with spare buffer, when images are different size */
static void scalefastrect(unsigned int *recto, unsigned int *rectn, int oldx, int oldy, int newx, int newy)
{
@@ -982,7 +982,7 @@ static void scalefastrect(unsigned int *recto, unsigned int *rectn, int oldx, in
}
}
}
-
+#endif
/* -------------- API: externally called --------------- */
/* not used anywhere ??? */