In the linux kernel(v6.0) source code /kernel/sched/sched.h, I found a macro:
#define SCHED_WARN_ON(x) ({ (void)(x), 0; })
My question is that how to understand the expression ({ (void)(x), 0; }). In my knowledge, the return value of that expression is 0. The (void)(x) part seems neglectable here, as the return value of { (void)(x), 0; } always depends on , 0; } part, which returns 0.
Any help would be appreciated!