folly: avoid compile warning/failure due to lvalue-to-rvalue conversion
authorPádraig Brady <pbrady@fb.com>
Fri, 10 Nov 2017 03:26:16 +0000 (19:26 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 10 Nov 2017 03:41:35 +0000 (19:41 -0800)
commit18de341f84035f76395347f77a8cc71d0461ab37
treec62cdb6d735589f03ac6222d765c765561cfd2f1
parentb529367b595dd4da7e70569cbea36d30ace4fa39
folly: avoid compile warning/failure due to lvalue-to-rvalue conversion

Summary:
With gcc 7.2 we get the warning:
  folly/io/async/DelayedDestructionBase.h:252:20:
  error: parameter ‘right’ set but not used [-Werror=unused-but-set-parameter]
     std::nullptr_t right) {
                    ^~~~~
I presume this is due to the implicit conversion, hence the named parameter is
never assigned.  Instead we use an explicit nullptr.

Reviewed By: yfeldblum

Differential Revision: D6279302

fbshipit-source-id: ed449601b0410c178777f20e82ed09d9097bd024
folly/io/async/DelayedDestructionBase.h