[scheduler] Using pedantic warnings