resource-container: Enable -Wnoexcept for g++ only 61/22061/5
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Thu, 20 Jul 2017 12:10:12 +0000 (14:10 +0200)
committerUze Choi <uzchoi@samsung.com>
Thu, 19 Oct 2017 06:26:21 +0000 (06:26 +0000)
As not supported on clang-3.5

Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I7bb4f53a0a0e2eba56e670f87ac163a211173fb6
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21561
Reviewed-by: George Nash <george.nash@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
(cherry picked from commit 99bfbb05a96d13baf3df4bf19cfde58eef87aefe)

service/resource-container/unittests/SConscript

index 2da3c9a..753ddc8 100644 (file)
@@ -107,6 +107,7 @@ if int(containerJavaSupport):
 
 if target_os not in ['windows']:
     container_gtest_env.AppendUnique(LIBS=['dl'])
+if 'g++' in container_gtest_env.get('CXX'):
     container_gtest_env.AppendUnique(CCFLAGS=['-Wnoexcept'])
 
 container_gtest_env.PrependUnique(LIBS=[