From e8fb999ef83dbad3a68a8dc029d3579a0629d362 Mon Sep 17 00:00:00 2001 From: oahcy <1162485779@qq.com> Date: Tue, 31 May 2022 17:15:35 +0800 Subject: [PATCH] not use this marco on nx windows --- sources/pvmp3dec/CMakeLists.txt | 9 +-------- sources/pvmp3dec/src/pvmp3_decode_huff_cw.cpp | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/sources/pvmp3dec/CMakeLists.txt b/sources/pvmp3dec/CMakeLists.txt index b7163c5e..bf84a3fc 100644 --- a/sources/pvmp3dec/CMakeLists.txt +++ b/sources/pvmp3dec/CMakeLists.txt @@ -62,16 +62,9 @@ if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h) file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h "#pragma once\n#define OSCL_UNUSED_ARG(x) (void)(x)") endif() -if(WINDOWS OR NX_WINDOWS) -target_compile_options(pvmp3dec PRIVATE - #-fsanitize=signed-integer-overflow - /FI ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h - # -) -else() target_compile_options(pvmp3dec PRIVATE #-fsanitize=signed-integer-overflow -include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h # ) -endif() + diff --git a/sources/pvmp3dec/src/pvmp3_decode_huff_cw.cpp b/sources/pvmp3dec/src/pvmp3_decode_huff_cw.cpp index 6e45a18a..1d9e2f58 100644 --- a/sources/pvmp3dec/src/pvmp3_decode_huff_cw.cpp +++ b/sources/pvmp3dec/src/pvmp3_decode_huff_cw.cpp @@ -139,7 +139,9 @@ uint16 pvmp3_decode_huff_cw_tab0(tmp3Bits *pMainData) { +#if (CC_PLATFORM != CC_PLATFORM_NX_WINDOWS) OSCL_UNUSED_ARG(pMainData); +#endif return(0); }