forked from bartvdbraak/blender
cleanup: warnings
This commit is contained in:
parent
1829c049be
commit
77c926933b
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user