sched_single.c:120:16: warning: logical 'and' of mutually exclusive tests is always false [-Wlogical-op]
if (prio < 0 && prio >= MAX_PRIORITY)
Maybe
if (prio < 0 || prio >= MAX_PRIORITY)
Log in to post a comment.