Revert "DPM: Fix DPM GCC6 warning errors." 81/106981/2 accepted/tizen/3.0/common/20161227.101705 accepted/tizen/3.0/ivi/20161227.012031 accepted/tizen/3.0/mobile/20161227.011937 accepted/tizen/3.0/tv/20161227.011956 accepted/tizen/3.0/wearable/20161227.012014 submit/tizen_3.0/20161226.011357
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 26 Dec 2016 05:00:08 +0000 (14:00 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 26 Dec 2016 05:02:18 +0000 (14:02 +0900)
This reverts commit 69a889b2872947fc8034b4dd787eb1a210d9a2b0.
Fix the next build error in tizen_3.0

178s] [ 88%] Building C object bt-service/CMakeFiles/bt-service.dir/bt-service-dpm.c.o
[  179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:35:2: error: excess elements in union initializer [-Werror]
[  179s]   [DPM_POLICY_ALLOW_BLUETOOTH] = { {DPM_BT_ERROR, NULL} },
[  179s]   ^
[  179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:35:2: error: (near initialization for 'policy_table[0].<anonymous>') [-Werror]
[  179s] /home/abuild/rpmbuild/BUILD/bluetooth-frwk-0.2.156/bt-service/bt-service-dpm.c:36:2: error: excess elements in union initializer [-Werror]
[  179s]   [DPM_POLICY_BLUETOOTH_DEVICE_RESTRICTION] = { {DPM_STATUS_ERROR, NULL} },

Change-Id: I549af70370af09ace903822e17f993b47bc98c9c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/bt-service-dpm.c

index 908f12c..37cec48 100644 (file)
 #include "bt-service-dpm.h"
 
 static dpm_policy_t policy_table[DPM_POLICY_END] = {
-       [DPM_POLICY_ALLOW_BLUETOOTH] = { {DPM_BT_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_DEVICE_RESTRICTION] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_UUID_RESTRICTION] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_DEVICES_WHITELIST] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_DEVICES_BLACKLIST] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_UUIDS_WHITELIST] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_UUIDS_BLACKLIST] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_ALLOW_BLUETOOTH_OUTGOING_CALL] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_PAIRING_STATE] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_DESKTOP_CONNECTIVITY_STATE] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_DISCOVERABLE_STATE] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_LIMITED_DISCOVERABLE_STATE] = { {DPM_STATUS_ERROR, NULL} },
-       [DPM_POLICY_BLUETOOTH_DATA_TRANSFER_STATE] = { {DPM_STATUS_ERROR, NULL} },
+       [DPM_POLICY_ALLOW_BLUETOOTH] = { {DPM_BT_ERROR} },
+       [DPM_POLICY_BLUETOOTH_DEVICE_RESTRICTION] = { {DPM_STATUS_ERROR} },
+       [DPM_POLICY_BLUETOOTH_UUID_RESTRICTION] = { {DPM_STATUS_ERROR} },
+       [DPM_POLICY_BLUETOOTH_DEVICES_WHITELIST] = { {NULL} },
+       [DPM_POLICY_BLUETOOTH_DEVICES_BLACKLIST] = { {NULL} },
+       [DPM_POLICY_BLUETOOTH_UUIDS_WHITELIST] = { {NULL} },
+       [DPM_POLICY_BLUETOOTH_UUIDS_BLACKLIST] = { {NULL} },
+       [DPM_POLICY_ALLOW_BLUETOOTH_OUTGOING_CALL] = { {DPM_STATUS_ERROR} },
+       [DPM_POLICY_BLUETOOTH_PAIRING_STATE] = { {DPM_STATUS_ERROR} },
+       [DPM_POLICY_BLUETOOTH_DESKTOP_CONNECTIVITY_STATE] = { {DPM_STATUS_ERROR} },
+       [DPM_POLICY_BLUETOOTH_DISCOVERABLE_STATE] = { {DPM_STATUS_ERROR} },
+       [DPM_POLICY_BLUETOOTH_LIMITED_DISCOVERABLE_STATE] = { {DPM_STATUS_ERROR} },
+       [DPM_POLICY_BLUETOOTH_DATA_TRANSFER_STATE] = { {DPM_STATUS_ERROR} },
 };