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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-11-15 18:31:26 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-11-15 18:31:26 +0300
commit9d52ff1ced73e737e5e395731a8cc1d8afa16acd (patch)
treec6449c3fac09207d0f1d56fd13993f91d8401363 /source/blender/blenkernel/intern/unit.c
parent61ee2f0db8ed5ff19f74dd06fb3a3a77f9636ee6 (diff)
Fix strict compiler warnings/errors
Diffstat (limited to 'source/blender/blenkernel/intern/unit.c')
-rw-r--r--source/blender/blenkernel/intern/unit.c4
1 files changed, 2 insertions, 2 deletions
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)