summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-01 23:46:39 -0400
committerRich Felker <dalias@aerifal.cx>2012-11-01 23:46:39 -0400
commita617a8e2adaaac41dd1b662b6646e8392465801c (patch)
treef5adaf552d944be658e4f967c3f55cc2987fe12f /src/internal
parent3a5aa8e49ce9a98725ceb311bb64f6168fc72d3e (diff)
downloadmusl-a617a8e2adaaac41dd1b662b6646e8392465801c.tar.gz
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.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/stdio_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h
index 80646f8c..e9045f27 100644
--- a/src/internal/stdio_impl.h
+++ b/src/internal/stdio_impl.h
@@ -24,6 +24,7 @@
#define UNGET 8
+#define FFINALLOCK(f) ((f)->lock>=0 ? __lockfile((f)) : 0)
#define FLOCK(f) int __need_unlock = ((f)->lock>=0 ? __lockfile((f)) : 0)
#define FUNLOCK(f) if (__need_unlock) __unlockfile((f)); else