Commit: 42ad5952ff0344bf9cf8dea3d3297a1fd1af6601 Author: Julian Eisel Date: Tue Sep 20 14:23:15 2016 +0200 Branches: blender2.8 https://developer.blender.org/rB42ad5952ff0344bf9cf8dea3d3297a1fd1af6601
Quiet warning with -Wformat-signedness Is actually a redundant cast since Blender uses -funsigned-char, however I think it's fine to be explicit about it in new code so cast is required to make compiler happy. Am not a fan of -funsigned-char anyway... =================================================================== M source/blender/editors/interface/interface_widgets.c =================================================================== diff --git a/source/blender/editors/interface/interface_widgets.c b/source/blender/editors/interface/interface_widgets.c index 0ae4c7e..a3686cb 100644 --- a/source/blender/editors/interface/interface_widgets.c +++ b/source/blender/editors/interface/interface_widgets.c @@ -2342,7 +2342,7 @@ static void ui_draw_but_HSVCIRCLE(uiBut *but, uiWidgetColors *wcol, const rcti * glEnable(GL_BLEND); glEnable(GL_LINE_SMOOTH); - immUniformColor3ubv(wcol->outline); + immUniformColor3ubv((unsigned char *)wcol->outline); imm_draw_lined_circle(pos, centx, centy, radius, tot); glDisable(GL_BLEND); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs