From 04b8015ce8c80be3a4b41deeece65d8a759ea5b4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 24 Feb 2021 18:01:07 +0300 Subject: Suppress GCC's (as of 10.2.1) ' may be used uninitialized in this function' warning Reproduced when compiled with -O2. --- bdep/wrapper-traits.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& -- cgit v1.1