diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2018-11-13 21:29:56 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2018-11-13 21:29:56 +0000 |
commit | f183fb162c1dbc58cc3f7e2c27891bd881db2bf2 (patch) | |
tree | 26a93605354b6e9d5c353d52f37583605751c49b /tools | |
parent | d54474e63b501c18d61de3bedd0337cc8a633926 (diff) | |
download | src-f183fb162c1dbc58cc3f7e2c27891bd881db2bf2.tar.gz src-f183fb162c1dbc58cc3f7e2c27891bd881db2bf2.zip |
locks: plug warnings about unitialized variables
They only showed up after I redefined LOCKSTAT_ENABLED to 0.
doing_lockprof in mutex.c is a real (but harmless) bug. Should the
value be non-zero it will do checks for lock profiling which would
otherwise be skipped.
state in rwlock.c is a wart from the compiler, the value can't be
used if lock profiling is not enabled.
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=340410
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions