I was looking through linux kernel source code (kernel.h
) and I found this macro for min
function:
#ifndef max
#define max(x, y) ({ \
typeof(x) _max1 = (x); \
typeof(y) _max2 = (y); \
(void) (&_max1 == &_max2); \
_max1 > _max2 ? _max1 : _max2; })
#endif
And now I'm wondering what does (void) (&_max1 == &_max2);
line do?