ext2fs_checkoverlap is (or at least seems) unused, and its prototype is

#ifdef DIAGNOSTIC.  Make the function #ifdef DIAGNOSTIC, as well, so we
don't get a warning about the function declaration not being a prototype.
This commit is contained in:
cgd 1998-03-04 06:50:25 +00:00
parent 8854631e5f
commit c35a34ab68
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ext2fs_subr.c,v 1.2 1998/03/01 02:23:46 fvdl Exp $ */
/* $NetBSD: ext2fs_subr.c,v 1.3 1998/03/04 06:50:25 cgd Exp $ */
/*
* Copyright (c) 1997 Manuel Bouyer.
@ -82,6 +82,7 @@ ext2fs_blkatoff(v)
return (0);
}
#ifdef DIAGNOSTIC
void
ext2fs_checkoverlap(bp, ip)
struct buf *bp;
@ -113,3 +114,4 @@ ext2fs_checkoverlap(bp, ip)
panic("Disk buffer overlap");
}
}
#endif