mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* find.c: Fix warnings reported by gcc 4.0.0.
* mountlist.c: Likewise. * screen.c: Likewise. * view.c: Likewise.
This commit is contained in:
parent
8b6a126125
commit
9d44b75ad5
@ -1,5 +1,10 @@
|
|||||||
2005-05-20 Pavel Roskin <proski@gnu.org>
|
2005-05-20 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* find.c: Fix warnings reported by gcc 4.0.0.
|
||||||
|
* mountlist.c: Likewise.
|
||||||
|
* screen.c: Likewise.
|
||||||
|
* view.c: Likewise.
|
||||||
|
|
||||||
* dialog.c (dlg_select_widget): Remove first argument, it's
|
* dialog.c (dlg_select_widget): Remove first argument, it's
|
||||||
redundant. Adjust all callers.
|
redundant. Adjust all callers.
|
||||||
(dlg_replace_widget): Likewise.
|
(dlg_replace_widget): Likewise.
|
||||||
|
@ -1067,7 +1067,7 @@ find_file (char *start_dir, char *pattern, char *content, char **dirname,
|
|||||||
void
|
void
|
||||||
do_find (void)
|
do_find (void)
|
||||||
{
|
{
|
||||||
char *start_dir, *pattern, *content;
|
char *start_dir = NULL, *pattern = NULL, *content = NULL;
|
||||||
char *filename, *dirname;
|
char *filename, *dirname;
|
||||||
int v, dir_and_file_set;
|
int v, dir_and_file_set;
|
||||||
regex_t rx; /* Compiled content_pattern to search inside files */
|
regex_t rx; /* Compiled content_pattern to search inside files */
|
||||||
|
@ -609,6 +609,7 @@ my_statfs (struct my_statfs *myfs_stats, const char *path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (entry){
|
if (entry){
|
||||||
|
memset (&fs_use, 0, sizeof (struct fs_usage));
|
||||||
get_fs_usage (entry->me_mountdir, &fs_use);
|
get_fs_usage (entry->me_mountdir, &fs_use);
|
||||||
|
|
||||||
myfs_stats->type = entry->me_dev;
|
myfs_stats->type = entry->me_dev;
|
||||||
|
@ -1329,7 +1329,7 @@ use_display_format (WPanel *panel, const char *format, char **error, int isstatu
|
|||||||
#define MAX_EXPAND 4
|
#define MAX_EXPAND 4
|
||||||
int expand_top = 0; /* Max used element in expand */
|
int expand_top = 0; /* Max used element in expand */
|
||||||
int usable_columns; /* Usable columns in the panel */
|
int usable_columns; /* Usable columns in the panel */
|
||||||
int total_cols;
|
int total_cols = 0;
|
||||||
const char *expand_list [MAX_EXPAND]; /* Expand at most 4 fields. */
|
const char *expand_list [MAX_EXPAND]; /* Expand at most 4 fields. */
|
||||||
int i;
|
int i;
|
||||||
format_e *darr, *home;
|
format_e *darr, *home;
|
||||||
|
@ -739,7 +739,7 @@ view_percent (WView *view, offset_type p)
|
|||||||
{
|
{
|
||||||
const int xpos = view->widget.cols - view->dpy_frame_size - 4;
|
const int xpos = view->widget.cols - view->dpy_frame_size - 4;
|
||||||
int percent;
|
int percent;
|
||||||
gboolean exact;
|
gboolean exact = FALSE;
|
||||||
offset_type filesize;
|
offset_type filesize;
|
||||||
|
|
||||||
filesize = view_get_filesize_with_exact (view, &exact);
|
filesize = view_get_filesize_with_exact (view, &exact);
|
||||||
@ -793,7 +793,7 @@ view_status (WView *view)
|
|||||||
}
|
}
|
||||||
if (w > 62) {
|
if (w > 62) {
|
||||||
offset_type filesize;
|
offset_type filesize;
|
||||||
gboolean exact;
|
gboolean exact = FALSE;
|
||||||
filesize = view_get_filesize_with_exact (view, &exact);
|
filesize = view_get_filesize_with_exact (view, &exact);
|
||||||
widget_move (view, view->dpy_frame_size, view->dpy_frame_size + 43);
|
widget_move (view, view->dpy_frame_size, view->dpy_frame_size + 43);
|
||||||
if (exact) {
|
if (exact) {
|
||||||
@ -1606,7 +1606,7 @@ search (WView *view, char *text,
|
|||||||
/* the position returned after the line has been read */
|
/* the position returned after the line has been read */
|
||||||
offset_type forward_line_start;
|
offset_type forward_line_start;
|
||||||
offset_type reverse_line_start;
|
offset_type reverse_line_start;
|
||||||
offset_type t;
|
offset_type t = 0;
|
||||||
/* Clear interrupt status */
|
/* Clear interrupt status */
|
||||||
got_interrupt ();
|
got_interrupt ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user