diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-09-23 14:16:54 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-09-23 14:16:54 +0000 |
commit | e55ad3ece02b405967365fde3ee786793085a45b (patch) | |
tree | 87aed123c10508627c05363a84ff5df0898b93cf | |
parent | 79de498006ebf3d460c353f929502a53854604c8 (diff) | |
download | newlib-e55ad3ece02b405967365fde3ee786793085a45b.zip newlib-e55ad3ece02b405967365fde3ee786793085a45b.tar.gz newlib-e55ad3ece02b405967365fde3ee786793085a45b.tar.bz2 |
* sysv_shm.cc (kern_shmat): Avoid compiler warning.
-rw-r--r-- | winsup/cygserver/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygserver/sysv_shm.cc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog index 826ced7..99b69a2 100644 --- a/winsup/cygserver/ChangeLog +++ b/winsup/cygserver/ChangeLog @@ -1,3 +1,7 @@ +2004-09-23 Corinna Vinschen <corinna@vinschen.de> + + * sysv_shm.cc (kern_shmat): Avoid compiler warning. + 2004-09-21 Corinna Vinschen <corinna@vinschen.de> * sysv_shm.cc (vm_object_reference): remove Cygwin specific define. diff --git a/winsup/cygserver/sysv_shm.cc b/winsup/cygserver/sysv_shm.cc index 02ad700..dc77103 100644 --- a/winsup/cygserver/sysv_shm.cc +++ b/winsup/cygserver/sysv_shm.cc @@ -334,11 +334,15 @@ kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg) int i, flags; struct shmid_ds *shmseg; struct shmmap_state *shmmap_s = NULL; +#ifndef __CYGWIN__ struct shm_handle *shm_handle; +#endif vm_offset_t attach_va; vm_prot_t prot; vm_size_t size; +#ifndef __CYGWIN__ int rv; +#endif int error = 0; if (!jail_sysvipc_allowed && jailed(td->td_ucred)) |