Skip to content

Commit 72a2189

Browse files
Uche Ubafacebook-github-bot
authored andcommitted
Fixing unused variables failure in windows for clang 17
Summary: Sometimes variables are declared, but go unused. Some LLVM versions allow this, while others (newer versions) result in errors This diff: Removes the unused variable `policy` in the function signatures as they result in errors when compiled using clang 17 #buildall Reviewed By: jdonald Differential Revision: D70846863 fbshipit-source-id: 377d91043cb25b1a954bb2e81a265d709b212171
1 parent 5aad7b3 commit 72a2189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

folly/portability/Sched.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ int sched_yield() {
2828
}
2929

3030
// There is only 1 scheduling policy on Windows
31-
int sched_get_priority_min(int policy) {
31+
int sched_get_priority_min(int) {
3232
return -15;
3333
}
3434

35-
int sched_get_priority_max(int policy) {
35+
int sched_get_priority_max(int) {
3636
return 15;
3737
}
3838
} // namespace sched

0 commit comments

Comments
 (0)