Commit: 9d52ff1ced73e737e5e395731a8cc1d8afa16acd Author: Sergey Sharybin Date: Thu Nov 15 16:31:26 2018 +0100 Branches: blender2.8 https://developer.blender.org/rB9d52ff1ced73e737e5e395731a8cc1d8afa16acd
Fix strict compiler warnings/errors =================================================================== M source/blender/blenkernel/intern/unit.c =================================================================== diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index da13029bcdf..5527cb5d39a 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -947,11 +947,11 @@ const char *bUnit_GetNameDisplay(const void *usys_pt, int index) } const char *bUnit_GetIdentifier(const void *usys_pt, int index) { - bUnitDef *unit = ((bUnitCollection *)usys_pt)->units + index; + const bUnitDef *unit = ((const bUnitCollection *)usys_pt)->units + index; if (unit->identifier == NULL) { BLI_assert(false && "identifier for this unit is not specified yet"); } - return unit->identifier;; + return unit->identifier; } double bUnit_GetScaler(const void *usys_pt, int index) _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs