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@gmail.com>2020-09-04 18:01:32 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-09-04 18:10:50 +0300
commite58ec740465516b08f1eefd82f9c798a54e04749 (patch)
tree14439fdf8c35835314fff0f9c86f346c89962697 /source/blender
parentf04260d8c679851be6a267214daacae44126156f (diff)
Cleanup: fix compiler warnings for MSVC
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenlib/intern/BLI_assert.c2
-rw-r--r--source/blender/blenlib/intern/math_vector_inline.c2
-rw-r--r--source/blender/editors/include/UI_interface.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/BLI_assert.c b/source/blender/blenlib/intern/BLI_assert.c
index dc22d035459..f397cdcd8a9 100644
--- a/source/blender/blenlib/intern/BLI_assert.c
+++ b/source/blender/blenlib/intern/BLI_assert.c
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
-void _BLI_assert_print_pos(const char *file, int line, const char *function, const char *id)
+void _BLI_assert_print_pos(const char *file, const int line, const char *function, const char *id)
{
fprintf(stderr, "BLI_assert failed: %s:%d, %s(), at \'%s\'\n", file, line, function, id);
}
diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c
index d3c975e3249..4af7e79c542 100644
--- a/source/blender/blenlib/intern/math_vector_inline.c
+++ b/source/blender/blenlib/intern/math_vector_inline.c
@@ -1178,7 +1178,7 @@ MINLINE float normalize_v3_v3(float r[3], const float a[3])
return normalize_v3_v3_length(r, a, 1.0f);
}
-MINLINE double normalize_v3_v3_length_db(double r[3], const double a[3], double unit_length)
+MINLINE double normalize_v3_v3_length_db(double r[3], const double a[3], double const unit_length)
{
double d = dot_v3v3_db(a, a);
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index ab5e2fcee6a..af282bde550 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -1581,7 +1581,7 @@ bool UI_search_item_add(uiSearchItems *items,
void *poin,
int iconid,
int state,
- uint8_t name_prefix_offset);
+ const uint8_t name_prefix_offset);
void UI_but_func_search_set(uiBut *but,
uiButSearchCreateFn search_create_fn,