[x265] GCC 4.8.2: Warning in threadpool.cpp (X265_MIN), [non-]enum. in cond.expr.
Mario *LigH* Rohkrämer
contact at ligh.de
Mon Apr 20 10:09:10 CEST 2015
GCC 4.8.2 cross-compiling for Win64 targets (Win32 have no warning):
+----
In file included from
h:/MSYS/home/Entwicklung/x265/source/common/threadpool.cpp:24:0:
h:/MSYS/home/Entwicklung/x265/source/common/threadpool.cpp: In static
member function 'static x265::ThreadPool*
x265::ThreadPool::allocThreadPools(x265_param*, int&)':
h:/MSYS/home/Entwicklung/x265/source/common/common.h:171:45: warning:
enumeral and non-enumeral type in conditional expression [enabled by
default]
#define X265_MIN(a, b) ((a) < (b) ? (a) : (b))
^
h:/MSYS/home/Entwicklung/x265/source/common/threadpool.cpp:247:25: note:
in expansion of macro 'X265_MIN'
cpusPerNode[X265_MIN(node, MAX_NODE_NUM)]++;
^
+----
Probably picky about types of parameters in the macro call.
--
Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de
More information about the x265-devel
mailing list