From: Hwankyu Jhun Date: Fri, 21 Apr 2023 00:50:59 +0000 (+0000) Subject: Fix build error for gcc 12.2.0 X-Git-Tag: accepted/tizen/unified/dev/20230726.115919~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74ed79435e2b00b206ae8c874484b57513c23ba0;p=platform%2Fcore%2Fappfw%2Fappcore-widget.git Fix build error for gcc 12.2.0 - Add missing header inclusion Change-Id: I0e64278b6a495d00ca79debf83ec8e200b85260a Signed-off-by: Hwankyu Jhun --- diff --git a/src/base/widget_base.cc b/src/base/widget_base.cc index ddb2b33..26219b3 100644 --- a/src/base/widget_base.cc +++ b/src/base/widget_base.cc @@ -26,6 +26,8 @@ #include #include +#include + #include #include "common/log_private.hh" diff --git a/src/efl_base/widget_app.cc b/src/efl_base/widget_app.cc index 17cd02f..11da6d1 100644 --- a/src/efl_base/widget_app.cc +++ b/src/efl_base/widget_app.cc @@ -26,6 +26,8 @@ #include #include +#include + #include "common/export_private.hh" #include "common/log_private.hh" #include "include/widget_app.h" @@ -553,7 +555,7 @@ API widget_class_h widget_app_class_add(widget_class_h widget_class, __app_widget->AddContextFactory(std::move(factory), class_id); set_last_result(WIDGET_ERROR_NONE); - int dummy; + static int dummy = 1; widget_class_h cls = reinterpret_cast(&dummy); return cls; }