vfs/vfs.h: use #warning only for gcc. Not all compilers

understand it
src/main.c, src/view.c: #warning's replaced with FIXME's.
They were not for users, but for developers
This commit is contained in:
Pavel Roskin 1999-12-22 04:04:23 +00:00
parent c3a925b835
commit 36facc201c
5 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
1999-12-21 Pavel Roskin <pavel_roskin@geocities.com>
* src/main.c, src/view.c: #warning's replaced with FIXME's.
They were not for users, but for developers
1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* main.c, cmd.c: add possibility to free VFS now

View File

@ -450,7 +450,7 @@ update_one_panel_widget (WPanel *panel, int force_update, char *current_file)
#if 0
ftpfs_flushdir ();
#endif
#warning Should supply flushdir method
/* FIXME: Should supply flushdir method */
memset (&(panel->dir_stat), 0, sizeof (panel->dir_stat));
}

View File

@ -239,7 +239,12 @@ get_byte (WView *view, unsigned int byte_index)
n = fread (p, 1, VIEW_PAGE_SIZE, view->stdfile);
else
n = mc_read (view->file, p, VIEW_PAGE_SIZE);
#warning FIXME: Errors are ignored at this point, also should report preliminary EOF
/*
* FIXME: Errors are ignored at this point
* Also should report preliminary EOF
*/
if (n != -1)
view->bytes_read += n;
if (view->s.st_size < view->bytes_read){

View File

@ -1,3 +1,8 @@
1999-12-21 Pavel Roskin <pavel_roskin@geocities.com>
* vfs/vfs.h: use #warning only for gcc. Not all compilers
understand it
1999-12-15 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* Merged changes by Andrew V. Samoilov <sav@bcs.zp.ua>. They are

View File

@ -378,7 +378,9 @@ extern void mc_vfs_done( void );
listed above and O_APPEND */
#if (O_ALL & O_APPEND)
#ifdef __GNUC__
#warning Unexpected problem with flags, O_LINEAR disabled, contact pavel@ucw.cz
#endif
#define O_LINEAR 0
#define IS_LINEAR(a) 0
#define NO_LINEAR(a) a