changeset 1544:0071b7b58596

* 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.
author jlarmour
date Mon, 15 Mar 2004 15:41:35 +0000
parents 8e86927fb409
children 40a7aad7873c
files packages/io/fileio/current/ChangeLog packages/io/fileio/current/src/file.cxx packages/io/fileio/current/src/fio.h
diffstat 3 files changed, 15 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/fileio/current/ChangeLog
+++ b/packages/io/fileio/current/ChangeLog
@@ -1,3 +1,11 @@
+2004-03-12  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* 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  <andrew.lunn@ascom.ch>
 
 	* src/io.cxx (readwritev): For EWOULDBLOCK and EAGAIN return
--- 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();
     
--- 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;