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:
authorRay Molenkamp <github@lazydodo.com>2019-05-25 22:22:25 +0300
committerRay Molenkamp <github@lazydodo.com>2019-05-25 22:22:25 +0300
commit36ae49502bbec312095dcf5a8df9c2b2201b9466 (patch)
treefc9074d8070a183f4f9b4df8efe0dc29b42c1534 /source/blender/blenlib
parent7d3de604c0191f1efa5653740582580bee8598c9 (diff)
blenlib: Fix build warning with MSVC
The declaration and implementation of BLI_path_name_at_index were out of sync leading to build warning C4028: formal parameter 1/3/4 different from declaration
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/path_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c
index 3bb60a20fc8..61b773f6016 100644
--- a/source/blender/blenlib/intern/path_util.c
+++ b/source/blender/blenlib/intern/path_util.c
@@ -1855,7 +1855,10 @@ const char *BLI_path_basename(const char *path)
*
* Ignores multiple slashes at any point in the path (including start/end).
*/
-bool BLI_path_name_at_index(const char *path, const int index, int *r_offset, int *r_len)
+bool BLI_path_name_at_index(const char *__restrict path,
+ const int index,
+ int *__restrict r_offset,
+ int *__restrict r_len)
{
if (index >= 0) {
int index_step = 0;