Warning’s Second Theorem with restricted variables