Code clearnup: warnings

This commit is contained in:
Campbell Barton 2014-02-14 22:02:50 +11:00
parent 43c478a36a
commit 80e21f6fc5
2 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ void interp_v3_v3v3_uchar(char unsigned target[3], const unsigned char a[3], con
}
void interp_v3_v3v3_char(char target[3], const char a[3], const char b[3], const float t)
{
interp_v3_v3v3_char((char *)target, (const char *)a, (const char *)b, t);
interp_v3_v3v3_uchar((unsigned char *)target, (const unsigned char *)a, (const unsigned char *)b, t);
}
void interp_v4_v4v4_uchar(char unsigned target[4], const unsigned char a[4], const unsigned char b[4], const float t)
@ -133,7 +133,7 @@ void interp_v4_v4v4_uchar(char unsigned target[4], const unsigned char a[4], con
}
void interp_v4_v4v4_char(char target[4], const char a[4], const char b[4], const float t)
{
interp_v4_v4v4_char((char *)target, (const char *)a, (const char *)b, t);
interp_v4_v4v4_uchar((unsigned char *)target, (const unsigned char *)a, (const unsigned char *)b, t);
}
void mid_v3_v3v3(float v[3], const float v1[3], const float v2[3])

View File

@ -308,7 +308,7 @@ typedef struct uiAfterFunc {
static bool ui_is_but_interactive(const uiBut *but, const bool labeledit);
static bool ui_but_contains_pt(uiBut *but, float mx, float my);
static bool ui_mouse_inside_button(ARegion *ar, uiBut *but, int x, int y);
static uiBut *ui_but_find_mouse_over_ex(ARegion *ar, int x, int y, bool ctrl);
static uiBut *ui_but_find_mouse_over_ex(ARegion *ar, const int x, const int y, const bool labeledit);
static uiBut *ui_but_find_mouse_over(ARegion *ar, const wmEvent *event);
static void button_activate_init(bContext *C, ARegion *ar, uiBut *but, uiButtonActivateType type);
static void button_activate_state(bContext *C, uiBut *but, uiHandleButtonState state);