[{"id":24407,"web_url":"https://patchwork.libcamera.org/comment/24407/","msgid":"<20220808073842.2gqak2lc2olf7o32@uno.localdomain>","date":"2022-08-08T07:38:42","subject":"Re: [libcamera-devel] [PATCH] libcamera: yaml_parser: Return\n\tnullopt on error from YamlObject::get()","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"content":"Hi Laurent,\n\nOn Fri, Aug 05, 2022 at 07:16:58PM +0300, Laurent Pinchart via libcamera-devel wrote:\n> The YamlParser::get<>() function returns an std::optional<> to indicate\n> when YAML parsing failed.\n>\n> The current implementation returns a default constructed std::optional\n> in case of errors with\n>\n>         return {};\n>\n> This has been reported as generating compiler warnings with a gcc 9.3.0\n> arm64 cross-compiler:\n>\n> ../src/libcamera/yaml_parser.cpp:184:11: error: ‘<anonymous>’ may be used uninitialized in this function [-Werror=maybe-uninitialized]\n>   184 |   return {};\n>       |           ^\n>\n> Replace this with an explicit\n>\n> \treturn std::nullopt;\n>\n> which fixes the warnings and conveys the purpose more explicitly.\n>\n> Reported-by: Christian Rauch <Rauch.Christian@gmx.de>\n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\n\nThanks\n  j\n\n> ---\n>  src/libcamera/yaml_parser.cpp | 48 +++++++++++++++++------------------\n>  1 file changed, 24 insertions(+), 24 deletions(-)\n>\n> diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp\n> index c96e99e1317c..9162e2250ed4 100644\n> --- a/src/libcamera/yaml_parser.cpp\n> +++ b/src/libcamera/yaml_parser.cpp\n> @@ -121,24 +121,24 @@ template<>\n>  std::optional<bool> YamlObject::get() const\n>  {\n>  \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tif (value_ == \"true\")\n>  \t\treturn true;\n>  \telse if (value_ == \"false\")\n>  \t\treturn false;\n>\n> -\treturn {};\n> +\treturn std::nullopt;\n>  }\n>\n>  template<>\n>  std::optional<int16_t> YamlObject::get() const\n>  {\n>  \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tchar *end;\n>\n> @@ -148,7 +148,7 @@ std::optional<int16_t> YamlObject::get() const\n>  \tif ('\\0' != *end || errno == ERANGE ||\n>  \t    value < std::numeric_limits<int16_t>::min() ||\n>  \t    value > std::numeric_limits<int16_t>::max())\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \treturn value;\n>  }\n> @@ -157,10 +157,10 @@ template<>\n>  std::optional<uint16_t> YamlObject::get() const\n>  {\n>  \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \t/*\n>  \t * libyaml parses all scalar values as strings. When a string has\n> @@ -171,7 +171,7 @@ std::optional<uint16_t> YamlObject::get() const\n>  \t */\n>  \tstd::size_t found = value_.find_first_not_of(\" \\t\");\n>  \tif (found != std::string::npos && value_[found] == '-')\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tchar *end;\n>\n> @@ -181,7 +181,7 @@ std::optional<uint16_t> YamlObject::get() const\n>  \tif ('\\0' != *end || errno == ERANGE ||\n>  \t    value < std::numeric_limits<uint16_t>::min() ||\n>  \t    value > std::numeric_limits<uint16_t>::max())\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \treturn value;\n>  }\n> @@ -190,10 +190,10 @@ template<>\n>  std::optional<int32_t> YamlObject::get() const\n>  {\n>  \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tchar *end;\n>\n> @@ -203,7 +203,7 @@ std::optional<int32_t> YamlObject::get() const\n>  \tif ('\\0' != *end || errno == ERANGE ||\n>  \t    value < std::numeric_limits<int32_t>::min() ||\n>  \t    value > std::numeric_limits<int32_t>::max())\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \treturn value;\n>  }\n> @@ -212,10 +212,10 @@ template<>\n>  std::optional<uint32_t> YamlObject::get() const\n>  {\n>  \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \t/*\n>  \t * libyaml parses all scalar values as strings. When a string has\n> @@ -226,7 +226,7 @@ std::optional<uint32_t> YamlObject::get() const\n>  \t */\n>  \tstd::size_t found = value_.find_first_not_of(\" \\t\");\n>  \tif (found != std::string::npos && value_[found] == '-')\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tchar *end;\n>\n> @@ -236,7 +236,7 @@ std::optional<uint32_t> YamlObject::get() const\n>  \tif ('\\0' != *end || errno == ERANGE ||\n>  \t    value < std::numeric_limits<uint32_t>::min() ||\n>  \t    value > std::numeric_limits<uint32_t>::max())\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \treturn value;\n>  }\n> @@ -245,10 +245,10 @@ template<>\n>  std::optional<double> YamlObject::get() const\n>  {\n>  \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tchar *end;\n>\n> @@ -256,7 +256,7 @@ std::optional<double> YamlObject::get() const\n>  \tdouble value = std::strtod(value_.c_str(), &end);\n>\n>  \tif ('\\0' != *end || errno == ERANGE)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \treturn value;\n>  }\n> @@ -265,7 +265,7 @@ template<>\n>  std::optional<std::string> YamlObject::get() const\n>  {\n>  \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \treturn value_;\n>  }\n> @@ -274,18 +274,18 @@ template<>\n>  std::optional<Size> YamlObject::get() const\n>  {\n>  \tif (type_ != Type::List)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tif (list_.size() != 2)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tauto width = list_[0].value->get<uint32_t>();\n>  \tif (!width)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \tauto height = list_[1].value->get<uint32_t>();\n>  \tif (!height)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>\n>  \treturn Size(*width, *height);\n>  }\n>\n> base-commit: 26c82ce13697e1af5950f4935ecff83c6453f351\n> --\n> Regards,\n>\n> Laurent Pinchart\n>","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 4FD43BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  8 Aug 2022 07:38:56 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id AF3146332B;\n\tMon,  8 Aug 2022 09:38:55 +0200 (CEST)","from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net\n\t[IPv6:2001:4b98:dc4:8::222])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6C5DB63326\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  8 Aug 2022 09:38:53 +0200 (CEST)","(Authenticated sender: jacopo@jmondi.org)\n\tby mail.gandi.net (Postfix) with ESMTPSA id 64F7B40008;\n\tMon,  8 Aug 2022 07:38:47 +0000 (UTC)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1659944335;\n\tbh=JxRZvipKTM3W6oyiCdgxUmKFbhPNOupZ9UKY98kZ8KA=;\n\th=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:\n\tFrom;\n\tb=iXKgI7gjvoWl3BSUo6vCfRWerW7lRjCKiZS6Q2+2kZUrIDcASUDzQfklbWNp00ioq\n\tprs0FKJeLjFuYhB1XEQ/ept0qndjjzjwkBuXIfC43jiTg2eGwXxfY/AGfLXMc5n0RZ\n\tij/kZrEyIypKY4xMZcr9mJW+2BdZYa31WRMXMePTOMYPVQMLOFPwsb2HT9bRu6bbi5\n\tWk4ff8GInkShaPSF/UGiSZrX5lu+baHBHIgCE7mtSo8XB22PHCmtCFPLOLjtH22fO7\n\tXjhMlKoLYDf/kY1kwTOuAKdrgLO9+YPjLz/K4D+02DosrnhN09Dropc1+MeoPSSVYV\n\tfXEOVGznUc0vw==","Date":"Mon, 8 Aug 2022 09:38:42 +0200","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","Message-ID":"<20220808073842.2gqak2lc2olf7o32@uno.localdomain>","References":"<20220805161658.11349-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"<20220805161658.11349-1-laurent.pinchart@ideasonboard.com>","Subject":"Re: [libcamera-devel] [PATCH] libcamera: yaml_parser: Return\n\tnullopt on error from YamlObject::get()","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Jacopo Mondi via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Jacopo Mondi <jacopo@jmondi.org>","Cc":"libcamera-devel@lists.libcamera.org","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}},{"id":24504,"web_url":"https://patchwork.libcamera.org/comment/24504/","msgid":"<1a493d76-8d9f-19b7-60b3-1a220a2c7c9b@ideasonboard.com>","date":"2022-08-10T06:36:04","subject":"Re: [libcamera-devel] [PATCH] libcamera: yaml_parser: Return\n\tnullopt on error from YamlObject::get()","submitter":{"id":86,"url":"https://patchwork.libcamera.org/api/people/86/","name":"Umang Jain","email":"umang.jain@ideasonboard.com"},"content":"Hi Laurent\n\nThank you for the patch.\n\nOn 8/5/22 21:46, Laurent Pinchart via libcamera-devel wrote:\n> The YamlParser::get<>() function returns an std::optional<> to indicate\n> when YAML parsing failed.\n>\n> The current implementation returns a default constructed std::optional\n> in case of errors with\n>\n>          return {};\n>\n> This has been reported as generating compiler warnings with a gcc 9.3.0\n> arm64 cross-compiler:\n>\n> ../src/libcamera/yaml_parser.cpp:184:11: error: ‘<anonymous>’ may be used uninitialized in this function [-Werror=maybe-uninitialized]\n>    184 |   return {};\n>        |           ^\n>\n> Replace this with an explicit\n>\n> \treturn std::nullopt;\n>\n> which fixes the warnings and conveys the purpose more explicitly.\n>\n> Reported-by: Christian Rauch <Rauch.Christian@gmx.de>\n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\n\nReviewed-by: Umang Jain <umang.jain@ideasonboard.com>\n\n> ---\n>   src/libcamera/yaml_parser.cpp | 48 +++++++++++++++++------------------\n>   1 file changed, 24 insertions(+), 24 deletions(-)\n>\n> diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp\n> index c96e99e1317c..9162e2250ed4 100644\n> --- a/src/libcamera/yaml_parser.cpp\n> +++ b/src/libcamera/yaml_parser.cpp\n> @@ -121,24 +121,24 @@ template<>\n>   std::optional<bool> YamlObject::get() const\n>   {\n>   \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tif (value_ == \"true\")\n>   \t\treturn true;\n>   \telse if (value_ == \"false\")\n>   \t\treturn false;\n>   \n> -\treturn {};\n> +\treturn std::nullopt;\n>   }\n>   \n>   template<>\n>   std::optional<int16_t> YamlObject::get() const\n>   {\n>   \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tchar *end;\n>   \n> @@ -148,7 +148,7 @@ std::optional<int16_t> YamlObject::get() const\n>   \tif ('\\0' != *end || errno == ERANGE ||\n>   \t    value < std::numeric_limits<int16_t>::min() ||\n>   \t    value > std::numeric_limits<int16_t>::max())\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \treturn value;\n>   }\n> @@ -157,10 +157,10 @@ template<>\n>   std::optional<uint16_t> YamlObject::get() const\n>   {\n>   \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \t/*\n>   \t * libyaml parses all scalar values as strings. When a string has\n> @@ -171,7 +171,7 @@ std::optional<uint16_t> YamlObject::get() const\n>   \t */\n>   \tstd::size_t found = value_.find_first_not_of(\" \\t\");\n>   \tif (found != std::string::npos && value_[found] == '-')\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tchar *end;\n>   \n> @@ -181,7 +181,7 @@ std::optional<uint16_t> YamlObject::get() const\n>   \tif ('\\0' != *end || errno == ERANGE ||\n>   \t    value < std::numeric_limits<uint16_t>::min() ||\n>   \t    value > std::numeric_limits<uint16_t>::max())\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \treturn value;\n>   }\n> @@ -190,10 +190,10 @@ template<>\n>   std::optional<int32_t> YamlObject::get() const\n>   {\n>   \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tchar *end;\n>   \n> @@ -203,7 +203,7 @@ std::optional<int32_t> YamlObject::get() const\n>   \tif ('\\0' != *end || errno == ERANGE ||\n>   \t    value < std::numeric_limits<int32_t>::min() ||\n>   \t    value > std::numeric_limits<int32_t>::max())\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \treturn value;\n>   }\n> @@ -212,10 +212,10 @@ template<>\n>   std::optional<uint32_t> YamlObject::get() const\n>   {\n>   \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \t/*\n>   \t * libyaml parses all scalar values as strings. When a string has\n> @@ -226,7 +226,7 @@ std::optional<uint32_t> YamlObject::get() const\n>   \t */\n>   \tstd::size_t found = value_.find_first_not_of(\" \\t\");\n>   \tif (found != std::string::npos && value_[found] == '-')\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tchar *end;\n>   \n> @@ -236,7 +236,7 @@ std::optional<uint32_t> YamlObject::get() const\n>   \tif ('\\0' != *end || errno == ERANGE ||\n>   \t    value < std::numeric_limits<uint32_t>::min() ||\n>   \t    value > std::numeric_limits<uint32_t>::max())\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \treturn value;\n>   }\n> @@ -245,10 +245,10 @@ template<>\n>   std::optional<double> YamlObject::get() const\n>   {\n>   \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tif (value_ == \"\")\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tchar *end;\n>   \n> @@ -256,7 +256,7 @@ std::optional<double> YamlObject::get() const\n>   \tdouble value = std::strtod(value_.c_str(), &end);\n>   \n>   \tif ('\\0' != *end || errno == ERANGE)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \treturn value;\n>   }\n> @@ -265,7 +265,7 @@ template<>\n>   std::optional<std::string> YamlObject::get() const\n>   {\n>   \tif (type_ != Type::Value)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \treturn value_;\n>   }\n> @@ -274,18 +274,18 @@ template<>\n>   std::optional<Size> YamlObject::get() const\n>   {\n>   \tif (type_ != Type::List)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tif (list_.size() != 2)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tauto width = list_[0].value->get<uint32_t>();\n>   \tif (!width)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \tauto height = list_[1].value->get<uint32_t>();\n>   \tif (!height)\n> -\t\treturn {};\n> +\t\treturn std::nullopt;\n>   \n>   \treturn Size(*width, *height);\n>   }\n>\n> base-commit: 26c82ce13697e1af5950f4935ecff83c6453f351","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 5AC38BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 10 Aug 2022 06:36:12 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B4E9B6332B;\n\tWed, 10 Aug 2022 08:36:11 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 998D461FA9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 10 Aug 2022 08:36:09 +0200 (CEST)","from [IPV6:2401:4900:1f3f:c7a1:27b3:9637:38a7:6084] (unknown\n\t[IPv6:2401:4900:1f3f:c7a1:27b3:9637:38a7:6084])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 13A2B481;\n\tWed, 10 Aug 2022 08:36:07 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1660113371;\n\tbh=1VbMH/q5ypOjfSSn86mhKHst2iT8M1Sp534MjjoUvXA=;\n\th=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=1++VRgdLxV2zfaWFbOz0/3e3O97NQjC95bZMpVfA4HWgQcn+p4hMZc9OkQMKHIdrj\n\tbekv5JLtomPLn8npQ0wGTwO9AaIrQvn8Fkrfc574hs5OO7tkpoI/sUcZOjVlHqD14P\n\t25QGo8ttLSJiK23c1GzzxdHFXX3pehogso/qSTQ2hczPMpn+/dspkjlaxmrnG8O+WD\n\tpqhTrNj3ZUuofgcvQinPzncstK541rzYkCbjY81FQPNTx11Rvt5CCtNaZWXQxm+ZIg\n\tvlAvR7wzi/Q1c3NdsIPwzM3rFSeU3nlIkICWLCq00vQJrtBgyRFxoGH8w0DzJLU38J\n\tRGvlsvsQ8X4wA==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1660113369;\n\tbh=1VbMH/q5ypOjfSSn86mhKHst2iT8M1Sp534MjjoUvXA=;\n\th=Date:Subject:To:References:From:In-Reply-To:From;\n\tb=mskUM8AUecAz0A2Abjm/yj9qgVpJ6xom7M9LQYz4S+DXulMSJP5KNlblV6mb9OGVy\n\t7icc0o+26v/+caYU4VOdxh9p5hgs1FwM3rsOMu6nOXVSOdW/0EhVNbcdEUq90Y+peC\n\tSoykShy4w6oB9HmWQ5MtfVU///Y4lImAU2alkG68="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"mskUM8AU\"; dkim-atps=neutral","Message-ID":"<1a493d76-8d9f-19b7-60b3-1a220a2c7c9b@ideasonboard.com>","Date":"Wed, 10 Aug 2022 12:06:04 +0530","MIME-Version":"1.0","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101\n\tThunderbird/91.4.1","Content-Language":"en-US","To":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tlibcamera-devel@lists.libcamera.org","References":"<20220805161658.11349-1-laurent.pinchart@ideasonboard.com>","In-Reply-To":"<20220805161658.11349-1-laurent.pinchart@ideasonboard.com>","Content-Type":"text/plain; charset=UTF-8; format=flowed","Content-Transfer-Encoding":"8bit","Subject":"Re: [libcamera-devel] [PATCH] libcamera: yaml_parser: Return\n\tnullopt on error from YamlObject::get()","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Umang Jain via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Umang Jain <umang.jain@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]