DA: Fix build warnings
[platform/upstream/connman.git] / src / service.c
index 6d317c1..2437901 100755 (executable)
 #include <ctype.h>
 #include <stdint.h>
 
+#if defined TIZEN_EXT
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
 #include <connman/storage.h>
 #include <connman/setting.h>
 #include <connman/agent.h>
@@ -475,6 +479,10 @@ static const char *security2string(enum connman_service_security security)
 #endif
        case CONNMAN_SERVICE_SECURITY_8021X:
                return "ieee8021x";
+#if defined TIZEN_EXT
+       default:
+               break;
+#endif
        }
 
        return NULL;
@@ -3391,12 +3399,17 @@ static void append_security(DBusMessageIter *iter, void *user_data)
                        break;
 #if defined TIZEN_EXT
                case CONNMAN_SERVICE_SECURITY_OWE:
+               case CONNMAN_SERVICE_SECURITY_DPP:
 #endif
                case CONNMAN_SERVICE_SECURITY_UNKNOWN:
                case CONNMAN_SERVICE_SECURITY_NONE:
                case CONNMAN_SERVICE_SECURITY_WEP:
                case CONNMAN_SERVICE_SECURITY_8021X:
                        break;
+#if defined TIZEN_EXT
+               default:
+                       break;
+#endif
                }
 
                if (service->wps_advertizing) {
@@ -5115,7 +5128,7 @@ void connman_service_set_internet_connection(struct connman_service *service,
        if (service->is_internet_connection != internet_connection) {
                service->is_internet_connection = internet_connection;
 
-               g_get_current_time(&service->modified);
+               g_get_current_time((GTimeVal *)&service->modified);
                service_save(service);
        }
 }
@@ -5509,6 +5522,7 @@ int __connman_service_check_passphrase(enum connman_service_security security,
 #if defined TIZEN_EXT
        case CONNMAN_SERVICE_SECURITY_OWE:
        case CONNMAN_SERVICE_SECURITY_DPP:
+       default:
 #endif
                break;
        }
@@ -10170,6 +10184,10 @@ static int service_connect(struct connman_service *service)
                                return -ENOKEY;
 
                        break;
+#if defined TIZEN_EXT
+               default:
+                       break;
+#endif
                }
                break;
        }
@@ -10196,6 +10214,10 @@ static int service_connect(struct connman_service *service)
                case CONNMAN_SERVICE_SECURITY_8021X:
                        prepare_8021x(service);
                        break;
+#if defined TIZEN_EXT
+               default:
+                       break;
+#endif
                }
 
                if (__connman_stats_service_register(service) == 0) {
@@ -11254,7 +11276,7 @@ sorting:
        need_save |= update_last_connected_bssid(service);
        need_save |= update_assoc_reject(service);
        if (need_save) {
-               g_get_current_time(&service->modified);
+               g_get_current_time((GTimeVal *)&service->modified);
                service_ext_save(service);
                need_sort = true;
        }