diff --git a/source/blender/blenkernel/intern/appdir.c b/source/blender/blenkernel/intern/appdir.c index e2e6e828335..50f9a9be05d 100644 --- a/source/blender/blenkernel/intern/appdir.c +++ b/source/blender/blenkernel/intern/appdir.c @@ -442,7 +442,7 @@ const char *BKE_appdir_folder_id_user_notest(const int folder_id, const char *su /** * Returns the path to a folder in the user area, creating it if it doesn't exist. */ -const char *BKE_appdir_folder_id_create(int folder_id, const char *subfolder) +const char *BKE_appdir_folder_id_create(const int folder_id, const char *subfolder) { const char *path; diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index b49eee3ea22..32fc10d3ccc 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -139,7 +139,7 @@ void BKE_id_lib_local_paths(Main *bmain, Library *lib, ID *id) BKE_bpath_traverse_id(bmain, id, BKE_bpath_relocate_visitor, BKE_BPATH_TRAVERSE_SKIP_MULTIFILE, - bpath_user_data); + (void *)bpath_user_data); } void id_lib_extern(ID *id) diff --git a/source/blender/blenlib/BLI_fileops.h b/source/blender/blenlib/BLI_fileops.h index 7b67a4fd7f4..86a8134376a 100644 --- a/source/blender/blenlib/BLI_fileops.h +++ b/source/blender/blenlib/BLI_fileops.h @@ -94,7 +94,7 @@ unsigned int BLI_filelist_dir_contents(const char *dir, struct direntry **fileli void BLI_filelist_duplicate( struct direntry **dest_filelist, struct direntry *src_filelist, unsigned int nrentries, void *(*dup_poin)(void *)); -void BLI_filelist_free(struct direntry *filelist, unsigned int nrentries, void (free_poin)(void *)); +void BLI_filelist_free(struct direntry *filelist, unsigned int nrentries, void (*free_poin)(void *)); /* Files */ diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h index a390b419c18..d6e7f3dd86d 100644 --- a/source/blender/blenlib/BLI_string.h +++ b/source/blender/blenlib/BLI_string.h @@ -48,7 +48,7 @@ char *BLI_strdupcat(const char *__restrict str1, const char *__restrict str2) AT char *BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL(); -char *BLI_strncpy_ensure_pad(char *dst, const char *src, const char pad, size_t maxncpy) ATTR_NONNULL(); +char *BLI_strncpy_ensure_pad(char *__restrict dst, const char *__restrict src, const char pad, size_t maxncpy) ATTR_NONNULL(); size_t BLI_strncpy_rlen(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); diff --git a/source/blender/blenlib/BLI_task.h b/source/blender/blenlib/BLI_task.h index 8f85bc4ec31..2eaec024ce2 100644 --- a/source/blender/blenlib/BLI_task.h +++ b/source/blender/blenlib/BLI_task.h @@ -73,7 +73,7 @@ typedef enum TaskPriority { } TaskPriority; typedef struct TaskPool TaskPool; -typedef void (*TaskRunFunction)(TaskPool *pool, void *taskdata, int threadid); +typedef void (*TaskRunFunction)(TaskPool *__restrict pool, void *taskdata, int threadid); TaskPool *BLI_task_pool_create(TaskScheduler *scheduler, void *userdata); void BLI_task_pool_free(TaskPool *pool); diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index 3e680cc8c5a..4c5268562ad 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -449,7 +449,7 @@ void BLI_filelist_free(struct direntry *filelist, unsigned int nrentries, void ( { unsigned int i; for (i = 0; i < nrentries; ++i) { - struct direntry * const entry = filelist + i; + struct direntry *entry = filelist + i; if (entry->image) { IMB_freeImBuf(entry->image); } diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index f35a20778c2..d5e29d7905a 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -648,7 +648,7 @@ void filelist_imgsize(struct FileList *filelist, short w, short h) filelist->prv_h = h; } -ImBuf *filelist_getimage(struct FileList *filelist, int index) +ImBuf *filelist_getimage(struct FileList *filelist, const int index) { ImBuf *ibuf = NULL; int fidx = 0; @@ -664,7 +664,7 @@ ImBuf *filelist_getimage(struct FileList *filelist, int index) return ibuf; } -ImBuf *filelist_geticon(struct FileList *filelist, int index) +ImBuf *filelist_geticon(struct FileList *filelist, const int index) { ImBuf *ibuf = NULL; struct direntry *file = NULL; diff --git a/source/blender/editors/space_text/text_intern.h b/source/blender/editors/space_text/text_intern.h index 5483cf04db7..f577714c480 100644 --- a/source/blender/editors/space_text/text_intern.h +++ b/source/blender/editors/space_text/text_intern.h @@ -50,8 +50,8 @@ void draw_text_main(struct SpaceText *st, struct ARegion *ar); void text_update_line_edited(struct TextLine *line); void text_update_edited(struct Text *text); void text_update_character_width(struct SpaceText *st); -void text_scroll_to_cursor(struct SpaceText *st, struct ARegion *ar, bool center); -void text_scroll_to_cursor__area(struct SpaceText *st, struct ScrArea *sa, bool center); +void text_scroll_to_cursor(struct SpaceText *st, struct ARegion *ar, const bool center); +void text_scroll_to_cursor__area(struct SpaceText *st, struct ScrArea *sa, const bool center); void text_update_cursor_moved(struct bContext *C); #define TXT_OFFSET ((int)(0.5f * U.widget_unit))