build: warnings as errors in jni code 19/22219/2
authorGeorge Nash <george.nash@intel.com>
Fri, 21 Jul 2017 19:46:44 +0000 (12:46 -0700)
committerRick Bell <richard.s.bell@intel.com>
Fri, 8 Sep 2017 22:53:40 +0000 (22:53 +0000)
All build warnings have been cleaned from the
Java JNI code to make sure it continues to build
without warnings we are treating all warnings
as errors.

Change-Id: I05e7d75b81bed25b5f62ba353ff41ea28bca620a
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/21579
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
(cherry picked from commit de6a8023a209bfa316d329fa9b790310bde6ad81)
Reviewed-on: https://gerrit.iotivity.org/gerrit/22219
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
java/jni/SConscript

index 31281bc..674e6dd 100644 (file)
@@ -67,7 +67,9 @@ jni_env.AppendUnique(CPPPATH=[
 target_os = env.get('TARGET_OS')
 if target_os not in ['windows', 'winrt']:
     jni_env.AppendUnique(CCFLAGS=[
-        '-Wno-error', '-Wno-comment', '-Wno-unused-function',
+        '-Werror',
+        '-Wno-comment',
+        '-Wno-unused-function',
         '-Wno-unused-parameter'
     ])
     jni_env.AppendUnique(CXXFLAGS=['-std=c++0x', '-Wall', '-pthread'])