Commit 385aff0
Fix
Summary: libc++ 21 enables stricter `-Wnonnull` diagnostics. `std::string::append` is annotated `nonnull`, so passing a potentially-null pointer is a hard error even when guarded by a null check on an alias. Fix by passing the already-checked local variable `c` instead of the original parameter `value`.
Reviewed By: lexprfuncall
Differential Revision: D94578921
fbshipit-source-id: 15b9b4e87ccf4d8a477672d70eb329bdcb0724f9-Wnonnull warning in folly/1 parent 3a6c4c6 commit 385aff0
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
| 434 | + | |
| 435 | + | |
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
| |||
0 commit comments