Add compiler warning flags and fix compile warning 52/61752/3
authorseong.chung <seong.chung@samsung.com>
Thu, 10 Mar 2016 09:01:07 +0000 (18:01 +0900)
committerSeongwook Chung <seong.chung@samsung.com>
Thu, 10 Mar 2016 09:10:09 +0000 (01:10 -0800)
commit471724011d3454cd9af445c3120f43bd8a64b4a7
tree1f297e97ad5c697ba65713293f280e843ddd9225
parent7becd05ac7a2b4d2e14ea3fb3f69b03705018213
Add compiler warning flags and fix compile warning

[Problem]
In case of adding compiler warning, there is one build error in class NetherCynaraBackend

The order of member variable between cynaraConfig and cynaraResult in class declaration is different from order of enumeration in constructor

* class declaration
class NetherCynaraBackend : public NetherPolicyBackend
{
   ....
   private:
   ....

          cynara_async_configuration *cynaraConfig;
          std::vector<u_int32_t> responseQueue;
          int cynaraResult;
}

* constructor
NetherCynaraBackend::NetherCynaraBackend(const NetherConfig &netherConfig)
             : NetherPolicyBackend(netherConfig), currentCynaraDescriptor(0),
             cynaraLastResult(CYNARA_API_UNKNOWN_ERROR), CynaraConfig(nullptr)

[Fix]
Change order between cynaraResult and cynaraConfig of class declaration

Change-Id: Ia03b10a33ee6b025ee28d76b82035e8f9cfb68d1
Signed-off-by: seong.chung <seong.chung@samsung.com>
CMakeLists.txt
include/nether_CynaraBackend.h