Fixed the build error using gcc 13 97/295097/1 accepted/tizen_8.0_unified accepted/tizen_unified accepted/tizen_unified_dev tizen tizen_8.0 accepted/tizen/8.0/unified/20231005.095353 accepted/tizen/unified/20230718.162141 accepted/tizen/unified/dev/20240620.011023 tizen_8.0_m2_release
authorwchang kim <wchang.kim@samsung.com>
Mon, 3 Jul 2023 02:15:08 +0000 (11:15 +0900)
committerwchang kim <wchang.kim@samsung.com>
Mon, 3 Jul 2023 02:15:08 +0000 (11:15 +0900)
src/podofo/base/PdfTokenizer.cpp:320:35:
     m_buffer.GetBuffer()[counter] = '\0';

Change-Id: I3a14875e1ff11b8396316c34a6f372f3a1e80dac

src/podofo/CMakeLists.txt

index bba6b5f..7ef351e 100644 (file)
@@ -168,7 +168,7 @@ SET(PODOFO_BASE_HEADERS
    base/podofoapi.h
    )
 
-SET(PODOFO_BASE_HEADERS2 
+SET(PODOFO_BASE_HEADERS2
     base/util/PdfMutex.h
     base/util/PdfMutexImpl_noop.h
     base/util/PdfMutexImpl_win32.h
@@ -235,6 +235,7 @@ SET(PODOFO_HEADER_FILES
   ${PODOFO_DOC_HEADERS}
   )
 
+ADD_DEFINITIONS("-Wno-array-bounds -Wno-stringop-overflow")
 # Create a Source Group for Visual Studio
 # so that headers are listed in the folder view
 # and are easier accessible
@@ -336,7 +337,7 @@ ELSE(WIN32 AND USING_SHARED_PODOFO)
 ENDIF(WIN32 AND USING_SHARED_PODOFO)
 
 # Write the cflags and depend target to the config file
-FILE(APPEND 
+FILE(APPEND
      "${PoDoFo_BINARY_DIR}/PoDoFoConfig.cmake"
      "SET(PODOFO_CFLAGS ${PODOFO_CFLAGS})\n"
      )