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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-21 16:33:19 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-21 16:33:19 +0400
commit2df82a2a2be909e0a1208ed2fe41637f24436414 (patch)
treea89c92df23c951a8dc31cffd58b999545e058ac9 /source/blender/blenlib
parentd6f38e4e018a75458290e3ed26dd80c2cf0af882 (diff)
Code cleanup: fix some vs2012 compiler warnings
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/math_geom.c2
-rw-r--r--source/blender/blenlib/intern/string.c2
-rw-r--r--source/blender/blenlib/intern/winstuff.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index fff5bc52003..a4e7424e5dd 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -3110,7 +3110,7 @@ void accumulate_vertex_normals(float n1[3], float n2[3], float n3[3],
/* Add weighted face normal component into normals of the face vertices.
* Caller must pass pre-allocated vdiffs of nverts length. */
void accumulate_vertex_normals_poly(float **vertnos, const float polyno[3],
- const float **vertcos, float vdiffs[][3], int nverts)
+ const float **vertcos, float vdiffs[][3], const int nverts)
{
int i;
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c
index 9d811aba503..03bed428c07 100644
--- a/source/blender/blenlib/intern/string.c
+++ b/source/blender/blenlib/intern/string.c
@@ -556,7 +556,7 @@ void BLI_timestr(double _time, char *str, size_t maxlen)
}
/* determine the length of a fixed-size string */
-size_t BLI_strnlen(const char *s, size_t maxlen)
+size_t BLI_strnlen(const char *s, const size_t maxlen)
{
size_t len;
diff --git a/source/blender/blenlib/intern/winstuff.c b/source/blender/blenlib/intern/winstuff.c
index ed6b1664ca8..071675c21b9 100644
--- a/source/blender/blenlib/intern/winstuff.c
+++ b/source/blender/blenlib/intern/winstuff.c
@@ -41,7 +41,7 @@
#define WIN32_SKIP_HKEY_PROTECTION // need to use HKEY
#include "BLI_winstuff.h"
-#include "BLI_utildefines.h"z
+#include "BLI_utildefines.h"
#include "BLI_path_util.h"
#include "BLI_string.h"