halbi2 wrote: > > Now there is a way to disable the warning. > > What way? The programmer can pass `-D_LIBCPP_DISABLE_NODISCARD_EXPECTED=1` to disable the warning. Or do I misunderstand you, @huixie90? https://github.com/llvm/llvm-project/pull/139651