1. Cleanup JNI dead code
2. Add NDEBUG definition to SCONS script to prevent crash
when assert
Change-Id: Ia4dc46548ce3bb0c9b4b28776e6c5f328444ab1a
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/314
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
# Build flags
######################################################################
if target_os not in ['windows', 'winrt']:
- soft_sensor_manager_env.AppendUnique(CXXFLAGS = ['-std=c++0x', '-Wall', '-DLINUX'])
+ soft_sensor_manager_env.AppendUnique(CXXFLAGS = ['-std=c++0x', '-Wall', '-DLINUX', '-DNDEBUG'])
if target_os != 'android':
soft_sensor_manager_env.AppendUnique(LIBS = ['pthread'])
env->GetMethodID(g_ClassQueryEngineEvent, "OnQueryEngineEvent",
"(ILorg/iotivity/service/ssm/DataReader;)V");
- jclass callbackObject = env->GetObjectClass(m_objQueryEngineEvent);
-
jmethodID cid_DataReader = env->GetMethodID(g_ClassDataReader, "<init>", "(I)V");
if (cid_DataReader == NULL)