- added GCC warning -Wstrict-prototypes

- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
This commit is contained in:
2010-12-03 12:30:59 +00:00
parent aca76ddb50
commit cd97253502
137 changed files with 402 additions and 432 deletions

View File

@@ -455,7 +455,7 @@ static void vicon_move_down_draw(int x, int y, int w, int h, float UNUSED(alpha)
glDisable(GL_LINE_SMOOTH);
}
static void init_brush_icons()
static void init_brush_icons(void)
{
#define INIT_BRUSH_ICON(icon_id, name) \
@@ -500,7 +500,7 @@ static void init_brush_icons()
#undef INIT_BRUSH_ICON
}
static void init_internal_icons()
static void init_internal_icons(void)
{
bTheme *btheme= U.themes.first;
ImBuf *bbuf= NULL;
@@ -731,7 +731,7 @@ void UI_icons_free_drawinfo(void *drawinfo)
}
}
static DrawInfo *icon_create_drawinfo()
static DrawInfo *icon_create_drawinfo(void)
{
DrawInfo *di = NULL;