diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-24 18:01:07 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-24 18:01:07 +0300 |
commit | 04b8015ce8c80be3a4b41deeece65d8a759ea5b4 (patch) | |
tree | b263db2f70cb08704a67b3f1d00eabb3a9938e6f | |
parent | 36f8e995b235625657923518c73038cbf51ed3c7 (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.hxx | 2 |
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& |