[Bf-blender-cvs] [abd7ad01b84] blender-v2.81-release: Cleanup: Fix warnings

Dalai Felinto noreply at git.blender.org
Tue Oct 15 03:46:12 CEST 2019


Commit: abd7ad01b84a291f7fdb2e6d1374b7ac1007e3be
Author: Dalai Felinto
Date:   Mon Oct 14 22:43:50 2019 -0300
Branches: blender-v2.81-release
https://developer.blender.org/rBabd7ad01b84a291f7fdb2e6d1374b7ac1007e3be

Cleanup: Fix warnings

===================================================================

M	source/blender/blenlib/BLI_gsqueue.h
M	source/blender/blenlib/intern/storage.c

===================================================================

diff --git a/source/blender/blenlib/BLI_gsqueue.h b/source/blender/blenlib/BLI_gsqueue.h
index 4bd53dfddbe..b8a87e9d9fa 100644
--- a/source/blender/blenlib/BLI_gsqueue.h
+++ b/source/blender/blenlib/BLI_gsqueue.h
@@ -26,7 +26,7 @@
 
 typedef struct _GSQueue GSQueue;
 
-GSQueue *BLI_gsqueue_new(size_t elem_size);
+GSQueue *BLI_gsqueue_new(const size_t elem_size);
 bool BLI_gsqueue_is_empty(const GSQueue *gq);
 size_t BLI_gsqueue_len(const GSQueue *gq);
 void BLI_gsqueue_pop(GSQueue *gq, void *r_item);
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 05a2d766fe0..fd5de717a24 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -209,7 +209,6 @@ int BLI_exists(const char *name)
   BLI_stat_t st;
   wchar_t *tmp_16 = alloc_utf16_from_8(name, 1);
   int len, res;
-  unsigned int old_error_mode;
 
   len = wcslen(tmp_16);
   /* in Windows #stat doesn't recognize dir ending on a slash



More information about the Bf-blender-cvs mailing list