Add the build exception for tizen (gcc9)
[platform/upstream/iotivity.git] / build_common / tizen / SConscript
index 44a1c13..6b48298 100644 (file)
@@ -23,6 +23,10 @@ env.AppendUnique(CCFLAGS = ['-Wextra', '-fPIC'])
 env.AppendUnique(CXXFLAGS = ['-Wextra', '-fPIC'])
 env.AppendUnique(LIBS = ['dl', 'pthread'])
 
+# # Add GCC9 exception
+env.AppendUnique(CCFLAGS = ['-Wno-error=stringop-truncation', '-Wno-format-truncation', '-Wno-error=address-of-packed-member'])
+env.AppendUnique(CXXFLAGS = ['-Wno-error=stringop-truncation', '-Wno-format-truncation', '-Wno-error=address-of-packed-member'])
+
 env.AppendUnique(CCFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE','-fstack-protector-strong','-Wl,-z,relro','-D_FORTIFY_SOURCE=2'])
 env.AppendUnique(CXXFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE','-fstack-protector-strong','-Wl,-z,relro','-D_FORTIFY_SOURCE=2'])
 env.AppendUnique(LINKFLAGS = ['-Wl,-z,relro'])