Fix build error for gcc 12.2.0 49/291749/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 21 Apr 2023 00:50:59 +0000 (00:50 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 21 Apr 2023 00:50:59 +0000 (00:50 +0000)
- Add missing header inclusion

Change-Id: I0e64278b6a495d00ca79debf83ec8e200b85260a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/base/widget_base.cc
src/efl_base/widget_app.cc

index ddb2b33..26219b3 100644 (file)
@@ -26,6 +26,8 @@
 #include <widget_errno.h>
 #include <widget_instance.h>
 
+#include <stdexcept>
+
 #include <app_core_multi_window_base.hh>
 
 #include "common/log_private.hh"
index 17cd02f..11da6d1 100644 (file)
@@ -26,6 +26,8 @@
 #include <widget_errno.h>
 #include <widget_instance.h>
 
+#include <stdexcept>
+
 #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<widget_class_h>(&dummy);
   return cls;
 }