Skip to content

Commit cf377eb

Browse files
supressing zlib compiler warnings
1 parent c975304 commit cf377eb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/src/tvconv/tvconv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void tvconv_checkReInit(void* const hTVCnv)
204204
{
205205
tvconv_data *pData = (tvconv_data*)(hTVCnv);
206206

207-
while (pData->procStatus == CODEC_STATUS_INITIALISING){
207+
while (pData->procStatus == /* FIXME: this comparison between different enum types is surely wrong? */ (PROC_STATUS)CODEC_STATUS_INITIALISING){
208208
SAF_SLEEP(10);
209209
}
210210
/* reinitialise if needed */

framework/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ elseif(APPLE AND ${SAF_PERFORMANCE_LIB} MATCHES "SAF_USE_APPLE_ACCELERATE")
172172
target_compile_definitions(${PROJECT_NAME} PUBLIC SAF_USE_APPLE_ACCELERATE=1)
173173
target_link_libraries(${PROJECT_NAME} PUBLIC "-framework Accelerate")
174174

175+
# These are just because of zlib
176+
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-macro-redefined -Wno-strict-prototypes)
175177
else()
176178
message(SEND_ERROR "The specified SAF_PERFORMANCE_LIB is not supported")
177179

0 commit comments

Comments
 (0)