# HG changeset patch # User jlarmour # Date 1079365295 0 # Node ID 0071b7b58596498e4d4168444400a7927fe2d843 # Parent 8e86927fb40938952d25812969b117764d104f26 * src/fio.h: If no POSIX then CYG_FILEIO_DELIVER_SIGNALS and CYG_FILEIO_SIGMASK_SET call CYG_UNUSED_PARAM on their arguments to silence warnings. * src/file.cxx (rename): Use a throw specifier to match prototype. diff --git a/packages/io/fileio/current/ChangeLog b/packages/io/fileio/current/ChangeLog --- a/packages/io/fileio/current/ChangeLog +++ b/packages/io/fileio/current/ChangeLog @@ -1,3 +1,11 @@ +2004-03-12 Jonathan Larmour + + * src/fio.h: If no POSIX then CYG_FILEIO_DELIVER_SIGNALS + and CYG_FILEIO_SIGMASK_SET call CYG_UNUSED_PARAM on their + arguments to silence warnings. + * src/file.cxx (rename): Use a throw specifier to match + prototype. + 2004-02-16 Andrew Lunn * src/io.cxx (readwritev): For EWOULDBLOCK and EAGAIN return diff --git a/packages/io/fileio/current/src/file.cxx b/packages/io/fileio/current/src/file.cxx --- a/packages/io/fileio/current/src/file.cxx +++ b/packages/io/fileio/current/src/file.cxx @@ -336,7 +336,7 @@ static Cyg_Mutex getcwd_lock CYGBLD_ATTR //========================================================================== // Rename a file -__externC int rename( const char *path1, const char *path2 ) +__externC int rename( const char *path1, const char *path2 ) __THROW { FILEIO_ENTRY(); diff --git a/packages/io/fileio/current/src/fio.h b/packages/io/fileio/current/src/fio.h --- a/packages/io/fileio/current/src/fio.h +++ b/packages/io/fileio/current/src/fio.h @@ -119,11 +119,15 @@ #else -#define CYG_FILEIO_SIGMASK_SET( __set, __oset ) CYG_EMPTY_STATEMENT +#define CYG_FILEIO_SIGMASK_SET( __set, __oset ) \ +CYG_MACRO_START \ +CYG_UNUSED_PARAM( const sigset_t*, __set ); \ +CYG_UNUSED_PARAM( const sigset_t*, __oset ); \ +CYG_MACRO_END #define CYG_FILEIO_SIGPENDING() (0) -#define CYG_FILEIO_DELIVER_SIGNALS( __mask ) CYG_EMPTY_STATEMENT +#define CYG_FILEIO_DELIVER_SIGNALS( __mask ) CYG_UNUSED_PARAM( const sigset_t*, __mask ) typedef int sigset_t;