[Bf-blender-cvs] [a1926c04b45] master: Cleanup: remove unnecessary ifdef

Campbell Barton noreply at git.blender.org
Fri Aug 12 03:25:49 CEST 2022


Commit: a1926c04b452851c2e3cdae7016540fa35bc660a
Author: Campbell Barton
Date:   Fri Aug 12 11:24:47 2022 +1000
Branches: master
https://developer.blender.org/rBa1926c04b452851c2e3cdae7016540fa35bc660a

Cleanup: remove unnecessary ifdef

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

M	source/blender/windowmanager/intern/wm_files.c

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

diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 45e8f8786df..1819ed13be3 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1887,9 +1887,6 @@ static void wm_autosave_location(char *filepath)
 {
   const int pid = abs(getpid());
   char path[1024];
-#ifdef WIN32
-  const char *savedir;
-#endif
 
   /* Normally there is no need to check for this to be NULL,
    * however this runs on exit when it may be cleared. */
@@ -1915,7 +1912,7 @@ static void wm_autosave_location(char *filepath)
    * through BLI_windows_get_default_root_dir().
    * If there is no C:\tmp autosave fails. */
   if (!BLI_exists(BKE_tempdir_base())) {
-    savedir = BKE_appdir_folder_id_create(BLENDER_USER_AUTOSAVE, NULL);
+    const char *savedir = BKE_appdir_folder_id_create(BLENDER_USER_AUTOSAVE, NULL);
     BLI_make_file_string("/", filepath, savedir, path);
     return;
   }



More information about the Bf-blender-cvs mailing list