Skip to content

Commit c0135e4

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused variables in tao/toaster/ServerInstance.cpp
Summary: LLVM-15 has a warning `-Wunused-but-set-variable` which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance. This diff either (a) removes an unused variable and, possibly, it's associated code, or (b) qualifies the variable with `[[maybe_unused]]`, mostly in cases where the variable _is_ used, but, eg, in an `assert` statement that isn't present in production code. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: palmje Differential Revision: D56022430 fbshipit-source-id: e75a3470b98b6dc52c904eb84c201a2c1198000a
1 parent 827871b commit c0135e4

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fbclock/cpp_test/test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ TEST(fbclock_test, test_fbclock_calculate_time) {
194194
}
195195

196196
TEST(fbclock_test, test_fbclock_apply_utc_offset) {
197-
int err;
198197
fbclock_truetime truetime;
199198
truetime.earliest_ns = 1647269091803102338;
200199
truetime.latest_ns = 1647269091803103576;

0 commit comments

Comments
 (0)