address of array 'peer->client_ctx->client_queue' will always evaluate to 'true'
When compiling using Clang I get this message ->
/Users/anderscedronius/git/librist/src/rist.c:1053:46: warning: address of array 'peer->client_ctx->client_queue' will always evaluate to 'true' [-Wpointer-bool-conversion]
} else if (RIST_UNLIKELY(!peer->client_ctx->client_queue)) {
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/anderscedronius/git/librist/extra/common.h:48:47: note: expanded from macro 'RIST_UNLIKELY'
# define RIST_UNLIKELY(p) __builtin_expect(!!(p), 0)
Here is the info from my build system ->
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/anderscedronius/git/librist
anderscedronius@Anderss-MacBook-Air librist % rm CMakeCache.txt
anderscedronius@Anderss-MacBook-Air librist % cmake .
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to
Edited by Anders Cedronius