Fix the build error 66/134466/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Sun, 18 Jun 2017 23:55:42 +0000 (08:55 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Sun, 18 Jun 2017 23:55:42 +0000 (08:55 +0900)
Remove undefined enum variable usage

Change-Id: I38ce07c3dd129431cc714061189f962830ee256b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-common.c

index 73d87f1bfb78fbaed3e1f019ac9ef07904c18794..036bbb02de8f795158d660fd4cedff75aee14210 100644 (file)
@@ -436,8 +436,13 @@ int _bt_get_error_code(int origin_error)
                return BT_ERROR_AUTH_REJECTED;
        case BLUETOOTH_ERROR_DEVICE_POLICY_RESTRICTION:
                return BT_ERROR_DEVICE_POLICY_RESTRICTION;
+/* Because BLUETOOTH_ERROR_NO_DATA is not defined in Tizen 3.0's bluetooth-api.h,
+   the build error is occured. We will include all patchsets for this in Tizen 4.0.
+   In tizen 3.0, we comment out this code for fixing build error.  */
+#if 0
        case BLUETOOTH_ERROR_NO_DATA:
                return BT_ERROR_NO_DATA;
+#endif
        case BLUETOOTH_ERROR_PARING_FAILED:
        case BLUETOOTH_ERROR_MAX_CONNECTION:
        case BLUETOOTH_ERROR_REGISTRATION_FAILED: