From: Arun Thomas Date: Fri, 17 Feb 2012 14:35:27 +0000 (+0100) Subject: servers: fix clang warnings in iso9660fs and vm X-Git-Tag: v3.2.0~16 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-keygen.html?a=commitdiff_plain;h=5d958f894f6c12158652e66bdf6c59fac1e85341;p=minix.git servers: fix clang warnings in iso9660fs and vm --- diff --git a/servers/iso9660fs/mount.c b/servers/iso9660fs/mount.c index e8053bccb..1c7ddd0ad 100644 --- a/servers/iso9660fs/mount.c +++ b/servers/iso9660fs/mount.c @@ -13,7 +13,6 @@ PUBLIC int fs_readsuper() { cp_grant_id_t label_gid; size_t label_len; int r = OK; - endpoint_t driver_e; int readonly; fs_dev = fs_m_in.REQ_DEV; diff --git a/servers/vm/arch/i386/pagetable.c b/servers/vm/arch/i386/pagetable.c index d516004a8..9d665e8c4 100644 --- a/servers/vm/arch/i386/pagetable.c +++ b/servers/vm/arch/i386/pagetable.c @@ -642,7 +642,7 @@ PUBLIC int pt_ptmap(struct vmproc *src_vmp, struct vmproc *dst_vmp) return OK; } -PUBLIC int pt_clearmapcache(void) +PUBLIC void pt_clearmapcache(void) { int f; /* Make sure kernel will invalidate tlb when using current diff --git a/servers/vm/proto.h b/servers/vm/proto.h index 8b861d3ad..243a376d8 100644 --- a/servers/vm/proto.h +++ b/servers/vm/proto.h @@ -110,6 +110,7 @@ _PROTOTYPE( int pt_map_in_range, (struct vmproc *src_vmp, struct vmproc *dst_vmp _PROTOTYPE( int pt_ptmap, (struct vmproc *src_vmp, struct vmproc *dst_vmp) ); _PROTOTYPE( int pt_ptalloc_in_range, (pt_t *pt, vir_bytes start, vir_bytes end, u32_t flags, int verify)); +_PROTOTYPE( void pt_clearmapcache, (void) ); _PROTOTYPE( int pt_writemap, (struct vmproc * vmp, pt_t *pt, vir_bytes v, phys_bytes physaddr, size_t bytes, u32_t flags, u32_t writemapflags));