aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-02-24 18:01:07 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-02-24 18:01:07 +0300
commit04b8015ce8c80be3a4b41deeece65d8a759ea5b4 (patch)
treeb263db2f70cb08704a67b3f1d00eabb3a9938e6f
parent36f8e995b235625657923518c73038cbf51ed3c7 (diff)
Suppress GCC's (as of 10.2.1) '<anonymous> may be used uninitialized in this function' warning
Reproduced when compiled with -O2.
-rw-r--r--bdep/wrapper-traits.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bdep/wrapper-traits.hxx b/bdep/wrapper-traits.hxx
index dd665d6..b860f56 100644
--- a/bdep/wrapper-traits.hxx
+++ b/bdep/wrapper-traits.hxx
@@ -37,7 +37,7 @@ namespace odb
static void
set_null (wrapper_type& o)
{
- o = wrapper_type ();
+ o = butl::nullopt;
}
static const wrapped_type&