From d576db3d0fb124983d46fb0138d6e3435435f752 Mon Sep 17 00:00:00 2001 From: yangchao <1162485779@qq.com> Date: Tue, 31 May 2022 17:23:24 +0800 Subject: [PATCH] not use this marco on nx windows (#258) * not use this marco on nx windows * nx windows not need this compile options --- sources/pvmp3dec/CMakeLists.txt | 18 ++++++------------ sources/pvmp3dec/src/pvmp3_decode_huff_cw.cpp | 2 ++ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/sources/pvmp3dec/CMakeLists.txt b/sources/pvmp3dec/CMakeLists.txt index b7163c5e..f434bd16 100644 --- a/sources/pvmp3dec/CMakeLists.txt +++ b/sources/pvmp3dec/CMakeLists.txt @@ -62,16 +62,10 @@ 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 - # -) +if (NOT NX_WINDOWS) + 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); }