File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ enable_language(CXX)
99
1010ADD_DEFINITIONS (-DUNICODE)
1111ADD_DEFINITIONS (-D_UNICODE)
12+ ADD_DEFINITIONS (-DZLIB_CONST)
1213if (WIN32 )
1314 # Turn off Microsofts "security" warnings.
1415 add_compile_definitions (_CRT_SECURE_NO_WARNINGS _CONSOLE _SCL_SECURE_NO_WARNINGS NOGDICAPMASKS NOVIRTUALKEYCODES NOWINMESSAGES NOWINSTYLES NOSYSMETRICS NOMENUS NOICONS NOKEYSTATES NOSYSCOMMANDS NORASTEROPS NOSHOWWINDOW OEMRESOURCE NOATOM NOCLIPBOARD NOCOLOR NOCTLMGR NODRAWTEXT NOGDI NOKERNEL NOUSER NONLS NOMB NOMEMMGR NOMETAFILE NOMINMAX NOMSG NOOPENFILE NOSCROLL NOSOUND NOTEXTMETRIC NOWH NOWINOFFSETS NOCOMM NOKANJI NOHELP NOPROFILER NODEFERWINDOWPOS NOMCX)
@@ -18,7 +19,7 @@ if (WIN32)
1819 add_compile_options ("/EHa" )
1920else ()
2021 SET (CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -ggdb -D_DEBUG -DDEBUG" )
21- add_compile_options ("-Wall" "-Wpedantic" "-Wextra" "-fexceptions" )
22+ add_compile_options ("-Wall" "-Wpedantic" "-Wextra" "-fexceptions" "-Wno-psabi" )
2223endif ()
2324
2425# specify the C++ standard
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ class GZipPack
7979 return iRet;
8080 }
8181
82- void InitBuffer (unsigned char * const pIn, uint32_t nInCount)
82+ void InitBuffer (const uint8_t * pIn, uint32_t nInCount)
8383 {
8484 m_strm.avail_in = nInCount;
8585 m_strm.next_in = pIn;
You can’t perform that action at this time.
0 commit comments