From a617a8e2adaaac41dd1b662b6646e8392465801c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 1 Nov 2012 23:46:39 -0400 Subject: fix more unused variable warnings some of these were coming from stdio functions locking files without unlocking them. I believe it's useful for this to throw a warning, so I added a new macro that's self-documenting that the file will never be unlocked to avoid the warning in the few places where it's wrong. --- src/stdio/fclose.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/stdio/fclose.c') diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c index 92bf7ff8..38e8a1e3 100644 --- a/src/stdio/fclose.c +++ b/src/stdio/fclose.c @@ -5,8 +5,7 @@ int fclose(FILE *f) int r; int perm; - /* This lock is not paired with any unlock. */ - FLOCK(f); + FFINALLOCK(f); if (!(perm = f->flags & F_PERM)) { OFLLOCK(); -- cgit v1.2.1