The gmt_ptr and gmt variables are not used, so the call to gmtime can
be removed entirely. In addition, there isn't a need to call
localtime twice.
Reported by: GCC -Wunused-but-set-variable
Differential D40656
fifolog: Trim some dead code and unused variables. jhb on Jun 20 2023, 4:33 PM. Authored by Tags None Referenced Files
Subscribers
Details
The gmt_ptr and gmt variables are not used, so the call to gmtime can Reported by: GCC -Wunused-but-set-variable
Diff Detail
Event TimelineComment Actions Dead code removal looks good to me, will defer to @phk to comment on whether the bug is actually missing code. Comment Actions I think this is OK. FreeBSD's fifolog was originally extracted from a larger and more specialized fifolog which (also) logged some application specific data for rapid indexing, and I think the GM timestamps was part of that. |