projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
folly/futures/detail/Core.h: avoid FP from clang's -Wconditional-uninitialized
[folly.git]
/
folly
/
futures
/
detail
/
Core.h
diff --git
a/folly/futures/detail/Core.h
b/folly/futures/detail/Core.h
index fd73e27656c8b3d0ab84160ecaec4dd722e2a3ea..30d421c05d249035aa7295e9a4d60b0b0ef27624 100644
(file)
--- a/
folly/futures/detail/Core.h
+++ b/
folly/futures/detail/Core.h
@@
-325,7
+325,8
@@
class Core final {
void doCallback() {
Executor* x = executor_;
- int8_t priority;
+ // initialize, solely to appease clang's -Wconditional-uninitialized
+ int8_t priority = 0;
if (x) {
if (!executorLock_.try_lock()) {
executorLock_.lock();