Support for GCC 4.7
authorGrzegorz Krawczyk <g.krawczyk@samsung.com>
Fri, 18 Jan 2013 14:28:46 +0000 (15:28 +0100)
committerZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Mon, 21 Jan 2013 13:38:38 +0000 (14:38 +0100)
Compatibility with GCC v 4.7 is required.

This commit fix problems with compilation GCC 4.7.

[Issue#] N/A
[Bug] The repository causes build break with GCC 4.7
[Cause] N/A
[Solution] Source code adjusted to GCC 4.7

[Verification]
1. Build repository (with current version = 4.5)

Change-Id: I78ef8c986dd811841605d0e1b18fc641343287e3

modules/db/src/orm.cpp
modules/dbus/src/connection.cpp
modules/event/include/dpl/event/property.h
modules/log/src/old_style_log_provider.cpp
modules/utils/src/wrt_utility.cpp

index 1d2f6b4..acdbcca 100644 (file)
@@ -22,6 +22,7 @@
 #include <stddef.h>
 #include <dpl/db/orm.h>
 
+
 namespace DPL {
 namespace DB {
 namespace ORM {
index c9b7f8e..53d992c 100644 (file)
@@ -109,7 +109,7 @@ Connection::~Connection()
 
     std::for_each(m_registeredObjects.begin(),
                   m_registeredObjects.end(),
-                  [m_connection] (const RegisteredObjects::value_type& value)
+                  [this] (const RegisteredObjects::value_type& value)
                   {
                       g_dbus_connection_unregister_object(
                               m_connection,
index 7c87e50..2817007 100644 (file)
@@ -511,7 +511,7 @@ public:
 
         this->m_storage.Set(value);
 
-        EmitEvent(PropertyEvent<Type>(value, this->m_model),
+        this->EmitEvent(PropertyEvent<Type>(value, this->m_model),
                   EmitMode::Auto);
     }
 
index 2ad499f..bd7db2b 100644 (file)
@@ -26,6 +26,7 @@
 #include <cstring>
 #include <sstream>
 #include <sys/time.h>
+#include <unistd.h>
 
 namespace DPL
 {
index 9bb2187..43888b3 100644 (file)
@@ -26,6 +26,7 @@
 #include <sys/types.h>
 #include <errno.h>
 #include <ctype.h>
+#include <unistd.h>
 #include <dpl/log/log.h>
 #include <dpl/utils/wrt_utility.h>