diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-03-18 01:27:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-03-18 01:27:15 +0300 |
commit | aeb2225a287e68d8ee03861bec112ce3459a468a (patch) | |
tree | 2fa2f308e233fc89b6a93aeca57d3a9daf828ecc /source/blender/editors | |
parent | d52400bfbd2a7e4d09b5a71bc461a554d232af15 (diff) |
2.50: some warning fixes.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/screen/area.c | 3 | ||||
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_file/file_header.c | 30 | ||||
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 5 |
5 files changed, 0 insertions, 41 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 6dde367ff1b..5c481652db1 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -702,9 +702,6 @@ void area_copy_data(ScrArea *sa1, ScrArea *sa2, int swap_space) void ED_area_swapspace(bContext *C, ScrArea *sa1, ScrArea *sa2) { - SpaceType *st; - SpaceLink *sl; - SpaceLink *slold; ScrArea *tmp= MEM_callocN(sizeof(ScrArea), "addscrarea"); ED_area_exit(C, sa1); diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index 971a0b3ad06..c65c486d4bb 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -550,7 +550,6 @@ void file_draw_list(const bContext *C, ARegion *ar) static void file_draw_fsmenu_category(const bContext *C, ARegion *ar, FSMenuCategory category, const char* category_name, short *starty) { - SpaceFile *sfile= (SpaceFile*)CTX_wm_space_data(C); struct FSMenu* fsmenu = fsmenu_get(); char bookmark[FILE_MAX]; int nentries = fsmenu_get_nentries(fsmenu, category); diff --git a/source/blender/editors/space_file/file_header.c b/source/blender/editors/space_file/file_header.c index b9d6c7f7c10..54dd7ff15ba 100644 --- a/source/blender/editors/space_file/file_header.c +++ b/source/blender/editors/space_file/file_header.c @@ -67,36 +67,6 @@ /* ************************ header area region *********************** */ -static void do_viewmenu(bContext *C, void *arg, int event) -{ -} - -static uiBlock *dummy_viewmenu(bContext *C, ARegion *ar, void *arg_unused) -{ - ScrArea *curarea= CTX_wm_area(C); - uiBlock *block; - short yco= 0, menuwidth=120; - - block= uiBeginBlock(C, ar, "dummy_viewmenu", UI_EMBOSSP, UI_HELV); - uiBlockSetButmFunc(block, do_viewmenu, NULL); - - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Nothing yet", 0, yco-=20, - menuwidth, 19, NULL, 0.0, 0.0, 1, 3, ""); - - if(curarea->headertype==HEADERTOP) { - uiBlockSetDirection(block, UI_DOWN); - } - else { - uiBlockSetDirection(block, UI_TOP); - uiBlockFlipOrder(block); - } - - uiTextBoundsBlock(block, 50); - uiEndBlock(C, block); - - return block; -} - static void do_file_header_buttons(bContext *C, void *arg, int event) { SpaceFile *sfile= (SpaceFile*)CTX_wm_space_data(C); diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index e38aed07577..1ba84566940 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -274,7 +274,6 @@ static int compare_extension(const void *a1, const void *a2) { void filelist_filter(FileList* filelist) { - char dir[FILE_MAX], group[GROUP_MAX]; int num_filtered = 0; int i, j; @@ -667,7 +666,6 @@ int filelist_column_len(struct FileList* filelist, FileListColumns column) void filelist_readdir(struct FileList* filelist) { char wdir[FILE_MAX]; - int finished = 0; int i; if (!filelist) return; diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 239e819c6de..f98c5bf17dd 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -78,11 +78,6 @@ static int text_new_poll(bContext *C) return 1; } -static int text_valid_poll(bContext *C) -{ - return CTX_data_edit_text(C) ? 1:0; -} - static int text_edit_poll(bContext *C) { Text *text= CTX_data_edit_text(C); |