Dist/Tizen: Fix build errors with gcc-14 42/312342/1 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20240611.123217 accepted/tizen/unified/dev/20240620.010643 accepted/tizen/unified/toolchain/20240610.172805 accepted/tizen/unified/x/20240610.223345 accepted/tizen/unified/x/asan/20240625.092402
authorWook Song <wook16.song@samsung.com>
Fri, 7 Jun 2024 04:40:00 +0000 (13:40 +0900)
committerWook Song <wook16.song@samsung.com>
Fri, 7 Jun 2024 04:43:15 +0000 (13:43 +0900)
This patch fixes build errors from the writing 1 byte into a region of
size 0 [-Werror=stringop-overflow=] with gcc-14.

Change-Id: Ic291001f4eb4699d8d33ad9d9529d7ba472edf15
Signed-off-by: Wook Song <wook16.song@samsung.com>
packaging/openvino.spec

index 6c3d782..ff79105 100644 (file)
@@ -113,7 +113,7 @@ pushd build
 CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS=${CFLAGS/-Wall/};
 CFLAGS=`echo ${CFLAGS} -Wno-format-truncation`
 CXXFLAGS="${CXXFLAGS:-%optflags}"; export CXXFLAGS=${CXXFLAGS/-Wall/};
-CXXFLAGS=`echo ${CXXFLAGS} -Wno-format-truncation -Wno-unused-const-variable -Wno-free-nonheap-object -Wno-deprecated-declarations -Wno-array-bounds`
+CXXFLAGS=`echo ${CXXFLAGS} -Wno-format-truncation -Wno-unused-const-variable -Wno-free-nonheap-object -Wno-deprecated-declarations -Wno-array-bounds -Wno-stringop-overflow`
 FFLAGS="${FFLAGS:-%optflags}"; export FFLAGS=${FFLAGS/-Wall/};
 cmake .. \
         -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \