not use this marco on nx windows (#258)

* not use this marco on nx windows

* nx windows not need this compile options
This commit is contained in:
yangchao 2022-05-31 17:23:24 +08:00 committed by GitHub
parent 40e0ab05b8
commit d576db3d0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

View File

@ -62,13 +62,7 @@ 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()
if (NOT NX_WINDOWS)
target_compile_options(pvmp3dec PRIVATE
#-fsanitize=signed-integer-overflow
-include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h

View File

@ -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);
}