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.
This commit is contained in:
parent
3a5aa8e49c
commit
a617a8e2ad
4 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue