Cleanup: fix compiler warnings for MSVC

This commit is contained in:
Brecht Van Lommel 2020-09-04 17:01:32 +02:00
parent f04260d8c6
commit e58ec74046
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);

View File

@ -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,